1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed #34496 -- Fixed handling source maps with data URI in ManifestStaticFilesStorage.

Regression in 781b44240a.
This commit is contained in:
Hielke Walinga
2023-04-17 14:30:10 +02:00
committed by Mariusz Felisiak
parent 498195bda4
commit fb535e0a90
4 changed files with 30 additions and 2 deletions

View File

@@ -86,7 +86,7 @@ class HashedFilesMixin:
),
(
(
r"(?m)(?P<matched>)^(/\*#[ \t]"
r"(?m)^(?P<matched>/\*#[ \t]"
r"(?-i:sourceMappingURL)=(?P<url>.*)[ \t]*\*/)$"
),
"/*# sourceMappingURL=%(url)s */",
@@ -97,7 +97,7 @@ class HashedFilesMixin:
"*.js",
(
(
r"(?m)(?P<matched>)^(//# (?-i:sourceMappingURL)=(?P<url>.*))$",
r"(?m)^(?P<matched>//# (?-i:sourceMappingURL)=(?P<url>.*))$",
"//# sourceMappingURL=%(url)s",
),
),