mirror of
https://github.com/django-components/django-components.git
synced 2025-08-03 22:08:17 +00:00
Add support for - and / in component names in middleware.
This commit is contained in:
parent
dd71c9abb8
commit
e0c29e55b7
2 changed files with 32 additions and 10 deletions
|
@ -13,7 +13,7 @@ JS_DEPENDENCY_PLACEHOLDER = '<script name="JS_PLACEHOLDER"></script>'
|
|||
SCRIPT_TAG_REGEX = re.compile("<script")
|
||||
COMPONENT_COMMENT_REGEX = re.compile(rb"<!-- _RENDERED (?P<name>\w+?) -->")
|
||||
PLACEHOLDER_REGEX = re.compile(
|
||||
rb"<!-- _RENDERED (?P<name>\w+?) -->"
|
||||
rb"<!-- _RENDERED (?P<name>[\w\-\/]+?) -->"
|
||||
rb'|<link name="CSS_PLACEHOLDER">'
|
||||
rb'|<script name="JS_PLACEHOLDER"></script>'
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue