#33253: Collectstatic fails when using ManifestStaticFilesStorage and specific
Javascript file
-------------------------------------+-------------------------------------
Reporter: Hervé Le Roy | Owner: nobody
Type: Bug | Status: new
Component: contrib.staticfiles | Version: 4.0
Severity: Release blocker | Resolution:
Keywords: | Triage Stage: Accepted
ManifestStaticFilesStorage |
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Hervé Le Roy):
For both import and export:
{{{
r"""(?P<matched>import\s+(?:(?P<imports>[\*\{\}\,\w
]*?))\s*from\s*[\"'](?P<url>.*?)[\"'])"""
r"""(?P<matched>export\s+(?:(?P<exports>[\*\{\}\,\w
]*?))\s*from\s*[\"'](?P<url>.*?)[\"'])"""
}}}
I have also:
- removed the 's' in (?s: (Regex101 was reporting it as incorrect in
Python regex syntax, and, anyway, Javascript import statement can be
multi-line)
- escaped double-quotes
--
Ticket URL: <https://code.djangoproject.com/ticket/33253#comment:5>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/064.92079757a3f6eed2de7c497a6b1a6826%40djangoproject.com.