mirror of
https://github.com/django/django.git
synced 2025-10-22 08:12:11 +00:00
Fixed #19526
CSS specifications governs that syntax is case insensitive. This modifies CachedFilesMixin to support that.
This commit is contained in:
parent
1c11ee6345
commit
32a7ab2148
3 changed files with 10 additions and 1 deletions
|
@ -71,7 +71,7 @@ class CachedFilesMixin(object):
|
|||
pattern, template = pattern
|
||||
else:
|
||||
template = self.default_template
|
||||
compiled = re.compile(pattern)
|
||||
compiled = re.compile(pattern, re.IGNORECASE)
|
||||
self._patterns.setdefault(extension, []).append((compiled, template))
|
||||
|
||||
def file_hash(self, name, content=None):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue