diff options
| author | Carlton Gibson <carlton.gibson@noumenal.es> | 2021-11-04 10:20:04 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-11-04 20:28:35 +0100 |
| commit | 4816dc942860caf076c7c85ea9dbfa8bfab212ff (patch) | |
| tree | 8ddde57b8991bc454e7b6ae034750967f77f2e88 /django | |
| parent | fc565cb539e4c1e5fba70d9ebb19bac0ca251d37 (diff) | |
Fixed #33237 -- Fixed detecting source maps in ManifestStaticFilesStorage for multiline files.
Switched regex to multiline mode in order to match per-line, rather
than against the whole file.
Thanks to Joseph Abrahams for the report.
Regression in 781b44240a06f0c868254f40f36ce46c927f56d1.
Diffstat (limited to 'django')
| -rw-r--r-- | django/contrib/staticfiles/storage.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/staticfiles/storage.py b/django/contrib/staticfiles/storage.py index 5fa088a29a..07999e00cb 100644 --- a/django/contrib/staticfiles/storage.py +++ b/django/contrib/staticfiles/storage.py @@ -54,7 +54,7 @@ class HashedFilesMixin: )), ('*.js', ( ( - r'(?P<matched>)^(//# (?-i:sourceMappingURL)=(?P<url>.*))$', + r'(?m)(?P<matched>)^(//# (?-i:sourceMappingURL)=(?P<url>.*))$', '//# sourceMappingURL=%(url)s', ), ( |
