Skip to content

Commit

Permalink
JS: Fixed docs description
Browse files Browse the repository at this point in the history
  • Loading branch information
Napalys committed Nov 26, 2024
1 parent c2cce70 commit 8b64f17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion javascript/ql/lib/semmle/javascript/StandardLibrary.qll
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,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"
Expand Down

0 comments on commit 8b64f17

Please sign in to comment.