Skip to content

Commit

Permalink
Fix Error in Python 3.11: Global Inline Flag in Regular Expression.
Browse files Browse the repository at this point in the history
  • Loading branch information
i076011 committed Feb 3, 2023
1 parent 3beb05a commit 4a52e44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jinja2htmlcompress.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from jinja2 import TemplateSyntaxError


_tag_re = re.compile(r'(?:<(/?)([a-zA-Z0-9_-]+)\s*|(>\s*))(?s)')
_tag_re = re.compile(r"(?:<(/?)([a-zA-Z0-9_-]+)\s*|(>\s*))", re.DOTALL)
_ws_normalize_re = re.compile(r'[ \t\r\n]+')


Expand Down

0 comments on commit 4a52e44

Please sign in to comment.