Changeset 2238 for FCKpackager/trunk
- Timestamp:
- 2008-07-21 12:27:07 (5 months ago)
- Location:
- FCKpackager/trunk
- Files:
-
- 2 modified
-
fckpackager.exe (modified) (previous)
-
fckpackager.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
FCKpackager/trunk/fckpackager.php
r2202 r2238 309 309 // Remove "/* */" comments 310 310 $script = preg_replace( 311 '/ (?m-s:^\s*\/\*).*?\*\//s',311 '/\/\*.*?\*\//s', 312 312 '', $script ) ; 313 313 … … 700 700 function ProtectStrings( $source ) 701 701 { 702 // Catches string literals, regular expressions and conditional comments. 702 703 return preg_replace_callback( 703 '/(?:("|\').*?(?<!\\\\)\1 |(?<![\/\\\\])\/[^\/\*].*?(?<!\\\\)\/)/',704 '/(?:("|\').*?(?<!\\\\)\1)|(?:(?<![\*\/\\\\])\/[^\/\*].*?(?<!\\\\)\/(?!\s+[\w\d])(?=.*;))|(?s:\/\*@(?:cc_on|if|elif|else|end).*?@\*\/)/', 704 705 array( &$this, '_ProtectStringsMatch' ), $source ) ; 705 706 }