Skip to content

Commit 1464427

Browse files
author
Esben Sparre Andreasen
committed
JS: fix comment typo
1 parent 7018a38 commit 1464427

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascript/ql/src/Security/CWE-020/MissingRegExpAnchor.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import javascript
2222
*/
2323
predicate isInterestingSemiAnchoredRegExpString(RegExpPatternSource src, string msg) {
2424
exists(string str, string maybeGroupedStr, string regex, string anchorPart, string escapedDot |
25-
// a dot that might be escaped in a regular expression, for example `/\./` or new `RegExp('\\.')`
25+
// a dot that might be escaped in a regular expression, for example `/\./` or `new RegExp('\\.')`
2626
escapedDot = "\\\\[.]" and
2727
// a string that is mostly free from special reqular expression symbols
2828
str = "(?:(?:" + escapedDot + ")|[a-z:/.?_,@0-9 -])+" and

0 commit comments

Comments
 (0)