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 7b6773c commit a9ed331Copy full SHA for a9ed331
javascript/ql/src/experimental/semmle/javascript/Actions.qll
@@ -307,7 +307,10 @@ module Actions {
307
// not just the last (greedy match) or first (reluctant match).
308
// TODO: This only handles expression strings that refer to contexts.
309
// It does not handle operators within the expression.
310
- result = this.getValue().regexpFind("[A-Za-z0-9_\\.\\-]+(?=\\s*\\}\\})", _, _)
+ result =
311
+ this.getValue()
312
+ .regexpFind("\\$\\{\\{\\s*[A-Za-z0-9_\\.\\-]+\\s*\\}\\}", _, _)
313
+ .regexpCapture("\\$\\{\\{\\s*([A-Za-z0-9_\\.\\-]+)\\s*\\}\\}", 1)
314
}
315
316
0 commit comments