Skip to content

Commit b08d57a

Browse files
authored
Add {{! to TEMPLATE_EXPR_OPENING_TAG
1 parent 213cabc commit b08d57a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascript/extractor/src/com/semmle/js/extractor/TemplateEngines.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public class TemplateEngines {
1414

1515
/** Pattern for a template tag whose contents should be parsed as an expression */
1616
public static final Pattern TEMPLATE_EXPR_OPENING_TAG =
17-
Pattern.compile("^(?:\\{\\{\\{?|<%[-=])"); // {{, {{{, <%=, <%-
17+
Pattern.compile("^(?:\\{\\{[{!]?|<%[-=])"); // {{, {{{, {{!, <%=, <%-
1818

1919
/**
2020
* Pattern matching a template tag from a supported template engine.

0 commit comments

Comments
 (0)