We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
refersTo
regex.qll
1 parent a6abee9 commit 1503c5eCopy full SHA for 1503c5e
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