From fb535e0a9033bd58d4bcb31876508e895c9b866d Mon Sep 17 00:00:00 2001 From: Hielke Walinga Date: Mon, 17 Apr 2023 14:30:10 +0200 Subject: Fixed #34496 -- Fixed handling source maps with data URI in ManifestStaticFilesStorage. Regression in 781b44240a06f0c868254f40f36ce46c927f56d1. --- django/contrib/staticfiles/storage.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'django') 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)^(/\*#[ \t]" + r"(?m)^(?P/\*#[ \t]" r"(?-i:sourceMappingURL)=(?P.*)[ \t]*\*/)$" ), "/*# sourceMappingURL=%(url)s */", @@ -97,7 +97,7 @@ class HashedFilesMixin: "*.js", ( ( - r"(?m)(?P)^(//# (?-i:sourceMappingURL)=(?P.*))$", + r"(?m)^(?P//# (?-i:sourceMappingURL)=(?P.*))$", "//# sourceMappingURL=%(url)s", ), ), -- cgit v1.2.1