Ticket #1240: 1240.patch
File 1240.patch, 799 bytes (added by , 17 years ago) |
---|
-
_source/includes/fckjavascriptcompressor.inc
41 41 // Protect the script strings. 42 42 $script = $stringsProc->ProtectStrings( $script ) ; 43 43 44 // Remove "//" comments45 $script = preg_replace(46 '/\/\/.*$/m',47 '', $script ) ;48 49 44 // Remove "/* */" comments 50 45 $script = preg_replace( 51 46 '/(?m-s:^\s*\/\*).*?\*\//s', 52 47 '', $script ) ; 53 48 49 // Remove "//" comments 50 $script = preg_replace( 51 '/\/\/.*$/m', 52 '', $script ) ; 53 54 54 // Remove spaces before the ";" at the end of the lines 55 55 $script = preg_replace( 56 56 '/\s*(?=;\s*$)/m',