We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8c9f091 + 1503c5e commit c8bb050Copy full SHA for c8bb050
python/ql/src/semmle/python/regex.qll
@@ -27,7 +27,7 @@ predicate used_as_regex(Expr s, string mode) {
27
(s instanceof Bytes or s instanceof Unicode) and
28
/* Call to re.xxx(regex, ... [mode]) */
29
exists(CallNode call, string name |
30
- call.getArg(0).refersTo(_, _, s.getAFlowNode()) and
+ call.getArg(0).pointsTo(_, _, s.getAFlowNode()) and
31
call.getFunction().pointsTo(Module::named("re").attr(name)) and
32
not name = "escape"
33
|
0 commit comments