mirror of
https://github.com/github/codeql.git
synced 2026-01-09 04:30:21 +01:00
Fix expression regexp
This commit is contained in:
@@ -24,8 +24,9 @@ string getADelimitedExpression(YamlString s, int offset) {
|
||||
// not just the last (greedy match) or first (reluctant match).
|
||||
result =
|
||||
s.getValue()
|
||||
.regexpFind("\\$\\{\\{\\s*[^\\}]+\\s*\\}\\}", _, offset)
|
||||
.regexpCapture("(\\$\\{\\{\\s*[^\\}]+\\s*\\}\\})", 1)
|
||||
.regexpFind("\\$\\{\\{(?:[^}]|}(?!}))*\\}\\}", _, offset)
|
||||
.regexpCapture("(\\$\\{\\{(?:[^}]|}(?!}))*\\}\\})", 1)
|
||||
.trim()
|
||||
}
|
||||
|
||||
private newtype TAstNode =
|
||||
|
||||
Reference in New Issue
Block a user