1
0
mirror of https://github.com/django/django.git synced 2025-10-27 07:36:08 +00:00

Fixed #36348 -- Fixed handling multiple nested url()s in ManifestStaticFilesStorage.

Signed-off-by: Samuel Cormier-Iijima <samuel@cormier-iijima.com>
This commit is contained in:
Samuel Cormier-Iijima
2025-04-22 22:00:20 -04:00
committed by Sarah Boyce
parent 994dc6d8a1
commit 1ba5fe19ca
3 changed files with 12 additions and 1 deletions

View File

@@ -80,7 +80,8 @@ class HashedFilesMixin:
(
"*.css",
(
r"""(?P<matched>url\(['"]{0,1}\s*(?P<url>.*?)["']{0,1}\))""",
r"""(?P<matched>url\((?P<quote>['"]{0,1})"""
r"""\s*(?P<url>.*?)(?P=quote)\))""",
(
r"""(?P<matched>@import\s*["']\s*(?P<url>.*?)["'])""",
"""@import url("%(url)s")""",