CSS specifications governs that syntax is case insensitive.
This modifies CachedFilesMixin to support that.
This commit is contained in:
Aleksandra Sendecka 2013-02-23 22:39:37 +01:00
parent 1c11ee6345
commit 32a7ab2148
3 changed files with 10 additions and 1 deletions

View file

@ -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):