Index: /FCKpackager/trunk/_source/includes/fckjavascriptcompressor.inc
===================================================================
--- /FCKpackager/trunk/_source/includes/fckjavascriptcompressor.inc	(revision 2236)
+++ /FCKpackager/trunk/_source/includes/fckjavascriptcompressor.inc	(revision 2237)
@@ -44,5 +44,5 @@
 		// Remove "/* */" comments
 		$script = preg_replace(
-			'/(?m-s:^\s*\/\*).*?\*\//s',
+			'/\/\*.*?\*\//s',
 			'', $script ) ;
 
Index: /FCKpackager/trunk/_source/includes/fckstringsprocessor.inc
===================================================================
--- /FCKpackager/trunk/_source/includes/fckstringsprocessor.inc	(revision 2236)
+++ /FCKpackager/trunk/_source/includes/fckstringsprocessor.inc	(revision 2237)
@@ -32,6 +32,7 @@
 	function ProtectStrings( $source )
 	{
+		// Catches string literals, regular expressions and conditional comments.
 		return preg_replace_callback(
-			'/(?:("|\').*?(?<!\\\\)\1|(?<![\/\\\\])\/[^\/\*].*?(?<!\\\\)\/)/',
+			'/(?:("|\').*?(?<!\\\\)\1)|(?:(?<![\*\/\\\\])\/[^\/\*].*?(?<!\\\\)\/(?!\s+[\w\d])(?=.*;))|(?s:\/\*@(?:cc_on|if|elif|else|end).*?@\*\/)/',
 			array( &$this, '_ProtectStringsMatch' ), $source ) ;
 	}
