Skip to content

Commit

Permalink
changed back to re package for some greps.. regex crahsed. opened issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherpickering committed Jul 30, 2021
1 parent fb3dcbd commit 10acbe2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/djlint/formatter/expand_html.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""djLint expand out html code."""
import re as old_re
from functools import partial

import regex as re
Expand Down Expand Up @@ -58,11 +59,11 @@ def add_html_line(out_format, match):
return out_format % match.group(1)

# put attributes on one line
html = re.sub(
html = old_re.sub(
tag_pattern,
_flatten_attributes,
html,
flags=re.IGNORECASE | re.DOTALL | re.MULTILINE,
flags=re.IGNORECASE | re.MULTILINE,
)

html_tags = "|".join(break_html_tags)
Expand Down

0 comments on commit 10acbe2

Please sign in to comment.