summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--itjs.class6
1 files changed, 5 insertions, 1 deletions
diff --git a/itjs.class b/itjs.class
index 654434e..add3914 100644
--- a/itjs.class
+++ b/itjs.class
@@ -136,7 +136,11 @@ function filenames($filelist)
function strip($code)
{
if (!preg_match("/^devel/", $GLOBALS['ULTRASERVERTYPE']))
- $code = preg_replace(array('|\s//.*$|m', '|\s+/\*.*?\*/|s', '|^\s+|m'), array(), $code);
+ $code = preg_replace(array(
+ '|\s//.*$|m',
+ '|\s+/\*.*?\*/|s', # MUST require at least one space before "/*" (jquery.js) but MUST NOT require space before "*/" (searchmap.js)
+ '|^\s+|m'
+ ), array(), $code);
return $code;
}