mirror of
https://github.com/github/codeql.git
synced 2026-03-23 07:56:54 +01:00
JS: generalize js/incomplete-sanitization to handle ConstantString
This commit is contained in:
@@ -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`. */
|
||||
|
||||
Reference in New Issue
Block a user