Merge pull request #11917 from edx/efischer/fix_safe_linter
Safe template linter should use DOTALL
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user