Apply suggestions from code review

This commit is contained in:
Alvaro Muñoz
2024-03-14 09:22:40 +01:00
committed by GitHub
parent fe1bf58ae5
commit aa37339deb
2 changed files with 1 additions and 2 deletions

View File

@@ -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*", ".")

View File

@@ -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