Open lysyloren opened 9 years ago
Oh, regexp fix should look like (? instead of + on qutoation marks match):
REFERRED_CSS_URLS_REGEX = re.compile('''url\(((?!["']?data:)[^\)]+)\)''')
If you make a pull request that fixes it, I'll merge it.
Pull request #36 made.
When someone embed data in CSS using url() and surrounds it with quotation marks " or ', django_static wrongly prepend current file path data. Example:
is rendered to:
Proposed fix is to improve regexp in templatetags/django_static.py to this one: