Apply suggestions from code review

Co-authored-by: Chris Smowton <smowton@github.com>
This commit is contained in:
Owen Mansel-Chan
2024-03-24 20:11:15 +00:00
committed by Owen Mansel-Chan
parent 821f399193
commit ac6c4add14
2 changed files with 2 additions and 2 deletions

View File

@@ -13,7 +13,7 @@ class VariableWithSensitiveName extends Variable {
exists(string name | name = this.getName() |
name.regexpMatch(getCommonSensitiveInfoRegex()) and
not name.regexpMatch("(?i).*null.*") and
not name.matches("tokenImage") // appears in parser code generated by JavaCC
name != "tokenImage" // appears in parser code generated by JavaCC
)
}
}