We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ab1110 commit ec9a3c8Copy full SHA for ec9a3c8
javascript/ql/src/RegExp/IdentityReplacement.ql
@@ -17,9 +17,10 @@ import javascript
17
* `s` and nothing else.
18
*/
19
predicate matchesString(Expr e, string s) {
20
- exists (RegExpConstant c |
21
- matchesConstant(e.(RegExpLiteral).getRoot(), c) and
22
- s = c.getValue()
+ exists (RegExpLiteral rl |
+ rl = e and
+ not rl.isIgnoreCase() and
23
+ regExpMatchesString(rl.getRoot(), s)
24
)
25
or
26
s = e.getStringValue()
0 commit comments