diff options
author | Christian Schneider | 2008-07-15 14:41:22 +0000 |
---|---|---|
committer | Christian Schneider | 2008-07-15 14:41:22 +0000 |
commit | 2e60e282a8de8f97effd98ea2deeea26929be52a (patch) | |
tree | e516f68e519b130f95b0a3b0fa11006e0b86a930 /itjs.class | |
parent | 5b3893490a0fa8b0c4da04405d8304cbee74a90f (diff) | |
download | itools-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.class | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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; } |