Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
more robust matching
  • Loading branch information
Archmonger committed Oct 30, 2021
commit f3dbd6d50844542b4638164484c4e7d0411ea824
2 changes: 1 addition & 1 deletion src/django_idom/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def _get_templates(self, paths):
def _register_components(self, templates):
"""Parses templates for IDOM components and then registers them."""
component_regex = re.compile(
r"\{% idom_component ((\"[^\"']*\")|('[^\"']*')) ((\S)*( )*)%\}"
r"\{% *idom_component ((\"[^\"']*\")|('[^\"']*')).*%\}"
)
components = set()

Expand Down