We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2cce70 commit 8b64f17Copy full SHA for 8b64f17
javascript/ql/lib/semmle/javascript/StandardLibrary.qll
@@ -121,7 +121,7 @@ class StringReplaceCall extends DataFlow::MethodCallNode {
121
122
/**
123
* 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()`.
+ * with the `g` flag or unknown flags, or this is a call to `.replaceAll()`.
125
*/
126
predicate maybeGlobal() {
127
RegExp::maybeGlobal(this.getRegExp().tryGetFlags()) or this.getMethodName() = "replaceAll"
0 commit comments