simplify StdLibRegExpInterpretation to only consider re.compile, because the rest is handled by RegexExecution

This commit is contained in:
erik-krogh
2023-03-24 12:09:34 +01:00
parent 113ce61d40
commit a64848c022

View File

@@ -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()
}
}