mirror of
https://github.com/github/codeql.git
synced 2026-05-01 19:55:15 +02:00
simplify StdLibRegExpInterpretation to only consider re.compile, because the rest is handled by RegexExecution
This commit is contained in:
@@ -33,7 +33,7 @@ private import semmle.python.ApiGraphs
|
||||
class StdLibRegExpInterpretation extends RegExpInterpretation::Range {
|
||||
StdLibRegExpInterpretation() {
|
||||
this =
|
||||
API::moduleImport("re").getMember(any(string name | name != "escape")).getACall().getArg(0)
|
||||
API::moduleImport("re").getMember("compile").getACall().getParameter(0, "pattern").asSink()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user