diff --git a/scripts/safe_template_linter.py b/scripts/safe_template_linter.py index 5c8d43493b..f0ffa00859 100755 --- a/scripts/safe_template_linter.py +++ b/scripts/safe_template_linter.py @@ -773,7 +773,7 @@ class UnderscoreTemplateLinter(object): end_index: The index of the end of the expression. expression: The text of the expression. """ - unescaped_expression_regex = re.compile("<%=.*?%>", re.MULTILINE) + unescaped_expression_regex = re.compile("<%=.*?%>", re.DOTALL) expressions = [] for match in unescaped_expression_regex.finditer(underscore_template):