mirror of
https://github.com/github/codeql.git
synced 2026-01-10 13:10:26 +01:00
Apply suggestions from code review
This commit is contained in:
@@ -5,7 +5,6 @@ module Utils {
|
||||
bindingset[expr]
|
||||
string normalizeExpr(string expr) {
|
||||
result =
|
||||
//[A-Za-z0-9'\"_\\[\\]\\*\\(\\)\\.\\-]
|
||||
expr.regexpReplaceAll("\\['([a-zA-Z0-9_\\*\\-]+)'\\]", ".$1")
|
||||
.regexpReplaceAll("\\[\"([a-zA-Z0-9_\\*\\-]+)\"\\]", ".$1")
|
||||
.regexpReplaceAll("\\s*\\.\\s*", ".")
|
||||
|
||||
@@ -47,7 +47,7 @@ private newtype TAstNode =
|
||||
)
|
||||
)
|
||||
or
|
||||
// if's conditions do not need to be delimted with ${{}}
|
||||
// `if`'s conditions do not need to be delimted with ${{}}
|
||||
exists(YamlMapping m |
|
||||
m.maps(key, value) and
|
||||
key.(YamlScalar).getValue() = ["if"] and
|
||||
|
||||
Reference in New Issue
Block a user