From 6992ea08420671362032b795cd2972cfc0ef5f01 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Sun, 5 Jun 2011 13:15:56 +0200 Subject: fixed JavaScript compressor for certain regexes This fixes a problem with running the minified jQuery through the compressor. --- lib/exe/js.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/exe/js.php') diff --git a/lib/exe/js.php b/lib/exe/js.php index b0618dc4c..e4c5c2ab8 100644 --- a/lib/exe/js.php +++ b/lib/exe/js.php @@ -294,7 +294,7 @@ function js_compress($s){ // items that don't need spaces next to them $chars = "^&|!+\-*\/%=\?:;,{}()<>% \t\n\r'\"[]"; - $regex_starters = array("(", "=", "[", "," , ":"); + $regex_starters = array("(", "=", "[", "," , ":", "!"); $whitespaces_chars = array(" ", "\t", "\n", "\r", "\0", "\x0B"); -- cgit v1.2.3