We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3150f24 commit 9ca1ac5Copy full SHA for 9ca1ac5
ql/lib/codeql/actions/ast/internal/Ast.qll
@@ -24,8 +24,9 @@ string getADelimitedExpression(YamlString s, int offset) {
24
// not just the last (greedy match) or first (reluctant match).
25
result =
26
s.getValue()
27
- .regexpFind("\\$\\{\\{\\s*[^\\}]+\\s*\\}\\}", _, offset)
28
- .regexpCapture("(\\$\\{\\{\\s*[^\\}]+\\s*\\}\\})", 1)
+ .regexpFind("\\$\\{\\{(?:[^}]|}(?!}))*\\}\\}", _, offset)
+ .regexpCapture("(\\$\\{\\{(?:[^}]|}(?!}))*\\}\\})", 1)
29
+ .trim()
30
}
31
32
private newtype TAstNode =
0 commit comments