Skip to content

Commit eca7a88

Browse files
committed
JS: Fixed docs description
1 parent 7db6f7c commit eca7a88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascript/ql/lib/semmle/javascript/StandardLibrary.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ class StringReplaceCall extends DataFlow::MethodCallNode {
119119

120120
/**
121121
* Holds if this is a global replacement, that is, the first argument is a regular expression
122-
* with the `g` flag, or this is a call to `.replaceAll()`.
122+
* with the `g` flag or unknown flags, or this is a call to `.replaceAll()`.
123123
*/
124124
predicate maybeGlobal() {
125125
RegExp::maybeGlobal(this.getRegExp().tryGetFlags()) or this.getMethodName() = "replaceAll"

0 commit comments

Comments
 (0)