Skip to content

Commit a9b195e

Browse files
author
Juan Carlos
committed
Fix html min
1 parent fa1573a commit a9b195e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

css_html_js_minify/html_minifier.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def remove_html_comments(html):
9999
""" # Grunt uses comments to as build arguments, bad practice but still.
100100
log.debug("""Removing all unnecessary HTML comments; Keep all containing:
101101
'build:', 'endbuild', '<!--[if]>', '<![endif]-->' for Grunt/Grymt, IE.""")
102-
return re.compile('<!-- [^(build|endbuild)].*? -->', re.I).sub('', html)
102+
return re.compile(r'<!-- [^(build|endbuild)].*? -->', re.I).sub('', html)
103103

104104

105105
def unquote_html_attributes(html):

0 commit comments

Comments
 (0)