mirror of
https://github.com/github/codeql.git
synced 2026-05-12 02:09:27 +02:00
Merge pull request #7327 from asgerf/js/handlebars-more-raw-interpolation
Approved by erik-krogh
This commit is contained in:
@@ -551,9 +551,11 @@ module Templating {
|
||||
private class MustacheStyleSyntax extends TemplateSyntax {
|
||||
MustacheStyleSyntax() { this = "mustache" }
|
||||
|
||||
override string getRawInterpolationRegexp() { result = "(?s)\\{\\{\\{(.*?)\\}\\}\\}" }
|
||||
override string getRawInterpolationRegexp() {
|
||||
result = "(?s)\\{\\{\\{(.*?)\\}\\}\\}|\\{\\{&(.*?)\\}\\}"
|
||||
}
|
||||
|
||||
override string getEscapingInterpolationRegexp() { result = "(?s)\\{\\{[^{](.*?)\\}\\}" }
|
||||
override string getEscapingInterpolationRegexp() { result = "(?s)\\{\\{[^{&](.*?)\\}\\}" }
|
||||
|
||||
override string getAFileExtension() { result = ["hbs", "njk"] }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user