Skip to content

Commit c8bb050

Browse files
authored
Merge pull request #4563 from tausbn/python-remove-refersto-from-regex-libs
Python: Remove `refersTo` from `regex.qll`
2 parents 8c9f091 + 1503c5e commit c8bb050

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/ql/src/semmle/python/regex.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ predicate used_as_regex(Expr s, string mode) {
2727
(s instanceof Bytes or s instanceof Unicode) and
2828
/* Call to re.xxx(regex, ... [mode]) */
2929
exists(CallNode call, string name |
30-
call.getArg(0).refersTo(_, _, s.getAFlowNode()) and
30+
call.getArg(0).pointsTo(_, _, s.getAFlowNode()) and
3131
call.getFunction().pointsTo(Module::named("re").attr(name)) and
3232
not name = "escape"
3333
|

0 commit comments

Comments
 (0)