mirror of
https://github.com/github/codeql.git
synced 2026-04-28 10:15:14 +02:00
JS: use RegExpLiteral as a SourceNode
This commit is contained in:
@@ -18,7 +18,7 @@ import javascript
|
||||
*/
|
||||
predicate matchesString(Expr e, string s) {
|
||||
exists(RegExpLiteral rl |
|
||||
rl = e and
|
||||
rl.flow().(DataFlow::SourceNode).flowsToExpr(e) and
|
||||
not rl.isIgnoreCase() and
|
||||
regExpMatchesString(rl.getRoot(), s)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user