Skip to content

Commit 8b64f17

Browse files
committed
JS: Fixed docs description
1 parent c2cce70 commit 8b64f17

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
@@ -121,7 +121,7 @@ class StringReplaceCall extends DataFlow::MethodCallNode {
121121

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

0 commit comments

Comments
 (0)