diff options
author | Hielke Walinga <hielkewalinga@gmail.com> | 2023-04-17 14:30:10 +0200 |
---|---|---|
committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2023-04-21 05:42:06 +0200 |
commit | fb535e0a9033bd58d4bcb31876508e895c9b866d (patch) | |
tree | d0c98f5203fbddedb1bf125774aba451c532278d /django | |
parent | 498195bda492d09ed00d05ab268cad4b8e5c9f21 (diff) | |
download | django-fb535e0a9033bd58d4bcb31876508e895c9b866d.tar.gz |
Fixed #34496 -- Fixed handling source maps with data URI in ManifestStaticFilesStorage.
Regression in 781b44240a06f0c868254f40f36ce46c927f56d1.
Diffstat (limited to 'django')
-rw-r--r-- | django/contrib/staticfiles/storage.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/contrib/staticfiles/storage.py b/django/contrib/staticfiles/storage.py index 02d47c56dc..186f8d7535 100644 --- a/django/contrib/staticfiles/storage.py +++ b/django/contrib/staticfiles/storage.py @@ -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", ), ), |