From 2e60e282a8de8f97effd98ea2deeea26929be52a Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Tue, 15 Jul 2008 14:41:22 +0000 Subject: Added comment to document caveats for comment stripping --- itjs.class | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'itjs.class') 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; } -- cgit v1.2.3