Add {{! to TEMPLATE_EXPR_OPENING_TAG

This commit is contained in:
Jorge
2023-11-06 20:40:00 +00:00
committed by GitHub
parent 213cabccc0
commit b08d57a85f

View File

@@ -14,7 +14,7 @@ public class TemplateEngines {
/** Pattern for a template tag whose contents should be parsed as an expression */
public static final Pattern TEMPLATE_EXPR_OPENING_TAG =
Pattern.compile("^(?:\\{\\{\\{?|<%[-=])"); // {{, {{{, <%=, <%-
Pattern.compile("^(?:\\{\\{[{!]?|<%[-=])"); // {{, {{{, {{!, <%=, <%-
/**
* Pattern matching a template tag from a supported template engine.