JS: Fixed docs description

This commit is contained in:
Napalys
2024-11-26 12:41:59 +01:00
parent 7db6f7c721
commit eca7a88615

View File

@@ -119,7 +119,7 @@ class StringReplaceCall extends DataFlow::MethodCallNode {
/**
* Holds if this is a global replacement, that is, the first argument is a regular expression
* 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()`.
*/
predicate maybeGlobal() {
RegExp::maybeGlobal(this.getRegExp().tryGetFlags()) or this.getMethodName() = "replaceAll"