Changeset 2237
- Timestamp:
- 2008-07-21 12:23:35 (5 months ago)
- Location:
- FCKpackager/trunk/_source/includes
- Files:
-
- 2 modified
-
fckjavascriptcompressor.inc (modified) (1 diff)
-
fckstringsprocessor.inc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
FCKpackager/trunk/_source/includes/fckjavascriptcompressor.inc
r2202 r2237 44 44 // Remove "/* */" comments 45 45 $script = preg_replace( 46 '/ (?m-s:^\s*\/\*).*?\*\//s',46 '/\/\*.*?\*\//s', 47 47 '', $script ) ; 48 48 -
FCKpackager/trunk/_source/includes/fckstringsprocessor.inc
r2078 r2237 32 32 function ProtectStrings( $source ) 33 33 { 34 // Catches string literals, regular expressions and conditional comments. 34 35 return preg_replace_callback( 35 '/(?:("|\').*?(?<!\\\\)\1 |(?<![\/\\\\])\/[^\/\*].*?(?<!\\\\)\/)/',36 '/(?:("|\').*?(?<!\\\\)\1)|(?:(?<![\*\/\\\\])\/[^\/\*].*?(?<!\\\\)\/(?!\s+[\w\d])(?=.*;))|(?s:\/\*@(?:cc_on|if|elif|else|end).*?@\*\/)/', 36 37 array( &$this, '_ProtectStringsMatch' ), $source ) ; 37 38 }