This commit is contained in:
Josh Perez 2020-09-14 19:41:38 -04:00 committed by Josh Perez
parent 22ba54ce5c
commit 64ba7b63d3
2 changed files with 5 additions and 4 deletions

View File

@ -1112,7 +1112,7 @@
"rule": "jQuery-$(",
"path": "js/views/settings_view.js",
"line": " this.$('.sync').removeAttr('disabled');",
"lineNumber": 272,
"lineNumber": 281,
"reasonCategory": "usageTrusted",
"updated": "2020-09-11T17:24:56.124Z",
"reasonDetail": "Static selector argument"
@ -1130,7 +1130,7 @@
"rule": "jQuery-$(",
"path": "js/views/settings_view.js",
"line": " this.$('.sync').text(i18n('syncing'));",
"lineNumber": 276,
"lineNumber": 285,
"reasonCategory": "usageTrusted",
"updated": "2020-09-11T17:24:56.124Z",
"reasonDetail": "Static selector argument"
@ -1148,7 +1148,7 @@
"rule": "jQuery-$(",
"path": "js/views/settings_view.js",
"line": " this.$('.sync_failed').show();",
"lineNumber": 288,
"lineNumber": 297,
"reasonCategory": "usageTrusted",
"updated": "2020-09-11T17:24:56.124Z",
"reasonDetail": "Static selector argument"
@ -13318,4 +13318,4 @@
"reasonCategory": "falseMatch",
"updated": "2020-09-08T23:07:22.682Z"
}
]
]

View File

@ -344,6 +344,7 @@ async function main(): Promise<void> {
}
// recreate this rule since it has g flag, and carries local state
if (rule.expression) {
// eslint-disable-next-line no-param-reassign
rule.regex = new RegExp(rule.expression, 'g');
}