JS: generalize js/incomplete-sanitization to handle ConstantString

This commit is contained in:
Esben Sparre Andreasen
2018-12-10 22:52:18 +01:00
parent a4b3b1e8c8
commit a1d92bfa50
3 changed files with 36 additions and 1 deletions

View File

@@ -25,7 +25,7 @@ string metachar() {
string getAMatchedString(Expr e) {
result = getAMatchedConstant(e.(RegExpLiteral).getRoot()).getValue()
or
result = e.(StringLiteral).getValue()
result = e.getStringValue()
}
/** Gets a constant matched by `t`. */