The method used to compress javascript files don't properly detects regexp. Two cases as been reported on jsstrip bug tracker.
1. the regexp is declared in a array
see
http://code.google.com/p/jsstrip/issues/detail?id=5
examples :
var res = [/first/, /second/];
var more_res = {first: /first/, second: /second/};
2. the regexp is preceded by a tab, a new line, a carriage return, a vertical tab or a NUL-byte
see
http://code.google.com/p/jsstrip/issues/detail?id=4
example :
text.replace(
/re/, "text");
This bug causes js code destruction when regexp especialy when regexp includes a quote:
var re = [/"/];
var str = "//";
is compressed as
var re=[/"/];
var str = "
A patch correcting this issues and including test cases is attached.