diff options
author | Andreas Gohr <andi@splitbrain.org> | 2011-06-05 13:15:56 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2011-06-05 13:15:56 +0200 |
commit | 6992ea08420671362032b795cd2972cfc0ef5f01 (patch) | |
tree | cdfb571369de777fffa7dbe35bed4f10ef18b2d1 /lib/exe/js.php | |
parent | 303d4f1470333e1ba613083310ab52b886f3d68c (diff) | |
download | rpg-6992ea08420671362032b795cd2972cfc0ef5f01.tar.gz rpg-6992ea08420671362032b795cd2972cfc0ef5f01.tar.bz2 |
fixed JavaScript compressor for certain regexes
This fixes a problem with running the minified jQuery through the
compressor.
Diffstat (limited to 'lib/exe/js.php')
-rw-r--r-- | lib/exe/js.php | 2 |
1 files changed, 1 insertions, 1 deletions
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"); |