Skip to content

Commit

Permalink
JS: brought back isGlobal predicate in RegExpCreationNode marked as d…
Browse files Browse the repository at this point in the history
…epricated.
  • Loading branch information
Napalys committed Nov 27, 2024
1 parent 5b7f498 commit 59c78b0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions javascript/ql/lib/semmle/javascript/dataflow/Nodes.qll
Original file line number Diff line number Diff line change
Expand Up @@ -1682,6 +1682,9 @@ class RegExpCreationNode extends DataFlow::SourceNode {
result = this.(RegExpLiteralNode).getFlags()
}

/** Holds if the constructed predicate has the `g` flag. */
deprecated predicate isGlobal() { RegExp::isGlobal(this.getFlags()) }

/** Gets a data flow node referring to this regular expression. */
private DataFlow::SourceNode getAReference(DataFlow::TypeTracker t) {
t.start() and
Expand Down

0 comments on commit 59c78b0

Please sign in to comment.