summaryrefslogtreecommitdiff
path: root/itjs.class
diff options
context:
space:
mode:
authorChristian Schneider2008-07-15 14:41:22 +0000
committerChristian Schneider2008-07-15 14:41:22 +0000
commit2e60e282a8de8f97effd98ea2deeea26929be52a (patch)
treee516f68e519b130f95b0a3b0fa11006e0b86a930 /itjs.class
parent5b3893490a0fa8b0c4da04405d8304cbee74a90f (diff)
downloaditools-2e60e282a8de8f97effd98ea2deeea26929be52a.tar.gz
itools-2e60e282a8de8f97effd98ea2deeea26929be52a.tar.bz2
itools-2e60e282a8de8f97effd98ea2deeea26929be52a.zip
Added comment to document caveats for comment stripping
Diffstat (limited to 'itjs.class')
-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;
}