diff options
author | Gildardo Adrian Maravilla Jacome <gilmrjc@gmail.com> | 2021-05-31 09:05:36 +0200 |
---|---|---|
committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-05-31 10:40:21 +0200 |
commit | 781b44240a06f0c868254f40f36ce46c927f56d1 (patch) | |
tree | cc63cdccfffdb8c762e3ab8089cf5aab80ce02a1 /tests/staticfiles_tests | |
parent | d270dd584e0af12fe6229fb712d0704c232dc7e5 (diff) | |
download | django-781b44240a06f0c868254f40f36ce46c927f56d1.tar.gz |
Refs #32319 -- Changed HashedFilesMixin to use named groups in patterns.
Diffstat (limited to 'tests/staticfiles_tests')
-rw-r--r-- | tests/staticfiles_tests/storage.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/staticfiles_tests/storage.py b/tests/staticfiles_tests/storage.py index 05fdec8db2..e94534fff0 100644 --- a/tests/staticfiles_tests/storage.py +++ b/tests/staticfiles_tests/storage.py @@ -84,7 +84,10 @@ class ExtraPatternsStorage(ManifestStaticFilesStorage): patterns = tuple(ManifestStaticFilesStorage.patterns) + ( ( "*.js", ( - (r"""(url\(['"]{0,1}\s*(.*?)["']{0,1}\))""", 'JS_URL("%s")'), + ( + r"""(?P<matched>url\(['"]{0,1}\s*(?P<url>.*?)["']{0,1}\))""", + 'JS_URL("%(url)s")', + ), ), ), ) |