Skip to content

Commit a0db250

Browse files
NapalysCopilot
andauthored
Update javascript/ql/test/query-tests/RegExp/DuplicateCharacterInCharacterClass/tst.js
Co-authored-by: Copilot <[email protected]>
1 parent d68f5eb commit a0db250

File tree

1 file changed

+1
-1
lines changed
  • javascript/ql/test/query-tests/RegExp/DuplicateCharacterInCharacterClass

1 file changed

+1
-1
lines changed

javascript/ql/test/query-tests/RegExp/DuplicateCharacterInCharacterClass/tst.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
/[\u{12340}-\u{12345}]/u;
1313
new RegExp("[\u{12340}-\u{12345}]", "u");
1414
const regex = /\b(?:https?:\/\/|mailto:|www\.)(?:[\S--[\p{P}<>]]|\/|[\S--[\[\]]]+[\S--[\p{P}<>]])+|\b[\S--[@\p{Ps}\p{Pe}<>]]+@([\S--[\p{P}<>]]+(?:\.[\S--[\p{P}<>]]+)+)/gmv;
15-
/[a|b|c]/; // $ Alert -- Reapted | character in character class, which has no special meaning in this context
15+
/[a|b|c]/; // $ Alert -- Repeated | character in character class, which has no special meaning in this context
1616
/[:alnum:]/; // $ Alert -- JavaScript does not support POSIX character classes like `[:alnum:]` in regular expressions, thus characters in the class are treated as literals
1717
/[(^style|^staticStyle)]/; // $ Alert
1818
/[.x.]/i; // $ Alert -- Repeated . character in character class

0 commit comments

Comments
 (0)