Skip to content

Commit c7815a0

Browse files
committed
- jslint-ci - Fix codeql alerts.
1 parent 2f99f45 commit c7815a0

2 files changed

Lines changed: 7 additions & 8 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@ on:
1313
- beta
1414
- master
1515
workflow_dispatch:
16-
env:
17-
MY_GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }}
18-
zzzz1234: 1
16+
permissions:
17+
contents: write
1918
jobs:
2019

2120

jslint.mjs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ let jslint_rgx_digits_octals = (
187187
/^[0-7_]*/
188188
);
189189
let jslint_rgx_directive = (
190-
/^(jslint|property|global)\s+(.*)$/
190+
/^(jslint|property|global)\s+?(\S.*?)$/
191191
);
192192
let jslint_rgx_directive_part = (
193193
/([a-zA-Z$_][a-zA-Z0-9$_]*)(?::\s*(true|false))?,?\s*|$/g
@@ -9511,10 +9511,10 @@ function jslint_report({
95119511
// Google Lighthouse Accessibility - <dl>'s do not contain only properly-ordered
95129512
// <dt> and <dd> groups, <script>, <template> or <div> elements.
95139513

9514-
"<dl>"
9515-
+ "<dt>" + htmlEscape(title) + "</dt>"
9516-
+ "<dd>" + list.join(", ") + "</dd>"
9517-
+ "</dl>"
9514+
"<dl>" +
9515+
"<dt>" + htmlEscape(title) + "</dt>" +
9516+
"<dd>" + list.map(htmlEscape).join(", ") + "</dd>" +
9517+
"</dl>"
95189518
)
95199519
: ""
95209520
);

0 commit comments

Comments
 (0)