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 7db6f7c commit eca7a88Copy full SHA for eca7a88
javascript/ql/lib/semmle/javascript/StandardLibrary.qll
@@ -119,7 +119,7 @@ class StringReplaceCall extends DataFlow::MethodCallNode {
119
120
/**
121
* 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()`.
+ * with the `g` flag or unknown flags, or this is a call to `.replaceAll()`.
123
*/
124
predicate maybeGlobal() {
125
RegExp::maybeGlobal(this.getRegExp().tryGetFlags()) or this.getMethodName() = "replaceAll"
0 commit comments