You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think I found a regression. After #223, templates with a dash "-" in the path are no longer resolved.
Steps to Reproduce
Add a pattern with a dash, for example, patterns/components/quote-block/quote-block.html
Navigate to http://localhost:8000/pattern-library/
An error is shown: Reverse for 'display_pattern' with arguments '('patterns/components/quote-block/quote-block.html',)' not found. 1 pattern(s) tried: ['\\-/pattern\\-library/pattern/(?P<pattern_template_name>[\\w./-\\\\]+.html)$']
In version 1.0.0 it works just fine.
Technical details
In this snippet, I prove that the previous and current regexp does not behave the same with respect to dashes.
Issue Summary
I think I found a regression. After #223, templates with a dash
"-"
in the path are no longer resolved.Steps to Reproduce
patterns/components/quote-block/quote-block.html
http://localhost:8000/pattern-library/
Reverse for 'display_pattern' with arguments '('patterns/components/quote-block/quote-block.html',)' not found. 1 pattern(s) tried: ['\\-/pattern\\-library/pattern/(?P<pattern_template_name>[\\w./-\\\\]+.html)$']
In version 1.0.0 it works just fine.
Technical details
In this snippet, I prove that the previous and current regexp does not behave the same with respect to dashes.
Versions:
PS: Thank you for this awesome library.
The text was updated successfully, but these errors were encountered: