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:
committed by
Mariusz Felisiak
parent
498195bda4
commit
fb535e0a90
@@ -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",
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user