BUG REPORT: wrong minification
-
I am a plugin developer and my customers are reporting issues because they use Litespeed to minify their Javascript files.
In my JS file, I have this line:
return(""+e[0]).replace("true"==e[1]?/ /g:"","").length
Notice the regular expression
/ /g
. Litespeed will minify this and remove the space, like so//g
.So now, it’s no longer a valid regular expression, but a JS comment. This breaks all the code coming after it.
Can your team look into this?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘BUG REPORT: wrong minification’ is closed to new replies.