mirror of
https://github.com/github/codeql.git
synced 2026-04-28 02:05:14 +02:00
JS: Fixed docs description
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user