jalmenarez / minify

Automatically exported from code.google.com/p/minify
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

JS : bug with some regular expressions containing quote characters #74

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Known bug in JSMin: regular expressions containing quote characters must 
be proceeded by one of the following characters: (,=:[!&|?

E.g. JSMin will fail on the following: return /'/;

The current workaround is to wrap the expression in parenthesis: return 
(/'/); but this is unacceptible.

The plan is to integrate this function into JSMin:
http://code.google.com/p/minify/source/browse/trunk/min/lib/MyMin.php#267

I'd like to just *use* MyMin but it fails a few conditional comment tests 
and the author was unresponsive.

Original issue reported on code.google.com by mrclay....@gmail.com on 10 Jan 2009 at 3:11

GoogleCodeExporter commented 9 years ago
Fixed in R282!

Original comment by mrclay....@gmail.com on 26 Jan 2009 at 5:07