"Invalid regular expression" error in minified script #255

Closed
mach3 opened this Issue Aug 21, 2013 · 3 comments

Projects

None yet

2 participants

@mach3
mach3 commented Aug 21, 2013

When importing minified scripts in "dist/", only which contains "head.css3.min.js", it's aborted with the message.

Uncaught SyntaxError: Invalid regular expression: /(url\s_(._?){3})/: Unmatched ')'

Maybe, compressor couldn't parse the escaped "(", and add needless ")" ?

The one which minified with grunt-contrib-uglify (UglifyJS2), it goes well.

@mach3
mach3 commented Aug 21, 2013

I have read the change in 799a52baf719d8342c16b4abc4c215dca82d0a35
It isn't to blame for compressor.

But it works well in Safari without ")", and doesn't work with ")".

@itechnology
Contributor

a patch for this has been submitted, but my home pc is broken, so i can't clone & sync the changes back to the cdn, nuget, and download packages right now :(

@itechnology
Contributor

This has been fixed as commented in #258#

Changes have been pushed to src/dist and .map files are now available for all js files ..cdn has not been updated yet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment