﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
33237	ManifestStaticFilesStorage doesn't update JavaScript source map references in multiline files	Joseph Abrahams	Carlton Gibson	"Current implementation of `HashedFilesMixin` relies on regex multiline mode to parse out the sourceMappingURL comment. As is, the filename is only correctly replaced when the comment is the first and only line in the JS file (exception to final single new line at EOF).

Steps to reproduce:
- Include static multi-line javascript file that contains a valid sourceMappingURL comment in a project with `STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.ManifestStaticFilesStorage'`
- Run `python manage.py collectstatic`
- Open the new hashed javascript file and observe the unmodified sourceMappingURL comment

See updated, failing test case: [https://joseph.is/3CrvpSW]. 

More than happy to work on a patch provided some guidance on expected functionality.
"	Bug	closed	contrib.staticfiles	4.0	Release blocker	fixed		Adam Johnson gilmrjc	Ready for checkin	1	0	0	0	0	0
