Skip to content

Commit b5ea41f

Browse files
committed
Fix CompiledRegex
1 parent d61adcc commit b5ea41f

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

  • python/ql/src/experimental/semmle/python/frameworks

python/ql/src/experimental/semmle/python/frameworks/Stdlib.qll

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -226,11 +226,10 @@ private module Stdlib {
226226
Attribute regexMethod;
227227

228228
CompiledRegex() {
229-
exists(DirectRegex reMethod, ReCompileCall compileCall |
230-
this = reMethod and
231-
reMethod.getRegexMethod() = compileCall.getRegexMethod() and
229+
exists(ReCompileCall compileCall |
232230
regexNode = compileCall.getRegexNode() and
233-
regexMethod = reMethod.getRegexMethod()
231+
regexMethod = compileCall.getRegexMethod() and
232+
this = compileCall
234233
)
235234
}
236235

0 commit comments

Comments
 (0)