JS: Accept a double-flagged line

This is flagged by two queries but for two separate issues. Seems valid to flag it twice.
This commit is contained in:
Asger F
2025-02-12 14:16:07 +01:00
parent 68fae9ded8
commit e5bee19b19

View File

@@ -338,7 +338,7 @@ function typicalBadHtmlSanitizers(s) {
}
function bad18NewRegExp(p) {
return p.replace(new RegExp("\\.\\./"), "");
return p.replace(new RegExp("\\.\\./"), ""); // $ Alert[js/incomplete-sanitization] Alert[js/incomplete-multi-character-sanitization] -- both lacking global flag, and multi-char replacement problem
}
function bad4NewRegExpG(s) {