Changeset 2243 for FCKpackager/trunk
- Timestamp:
- 2008-07-21 14:15:18 (5 months ago)
- Location:
- FCKpackager/trunk
- Files:
-
- 3 modified
-
fckpackager.exe (modified) (previous)
-
fckpackager.php (modified) (2 diffs)
-
_source/includes/fckstringsprocessor.inc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
FCKpackager/trunk/fckpackager.php
r2238 r2243 309 309 // Remove "/* */" comments 310 310 $script = preg_replace( 311 '/ \/\*.*?\*\//s',311 '/(?<!\/)\/\*.*?\*\//s', 312 312 '', $script ) ; 313 313 … … 702 702 // Catches string literals, regular expressions and conditional comments. 703 703 return preg_replace_callback( 704 '/(?:("|\').*?(?<!\\\\)\1)|(?:(?<![\*\/\\\\])\/[^\/\*].*?(?<!\\\\)\/(? !\s+[\w\d])(?=.*;))|(?s:\/\*@(?:cc_on|if|elif|else|end).*?@\*\/)/',704 '/(?:("|\').*?(?<!\\\\)\1)|(?:(?<![\*\/\\\\])\/[^\/\*].*?(?<!\\\\)\/(?=([\.\w])|(\s*[,;}\)])))|(?s:\/\*@(?:cc_on|if|elif|else|end).*?@\*\/)/', 705 705 array( &$this, '_ProtectStringsMatch' ), $source ) ; 706 706 } -
FCKpackager/trunk/_source/includes/fckstringsprocessor.inc
r2242 r2243 34 34 // Catches string literals, regular expressions and conditional comments. 35 35 return preg_replace_callback( 36 '/(?:("|\').*?(?<!\\\\)\1)|(?:(?<![\*\/\\\\])\/[^\/\*].*?(?<!\\\\)\/(?= [\.\w;[({]))|(?s:\/\*@(?:cc_on|if|elif|else|end).*?@\*\/)/',36 '/(?:("|\').*?(?<!\\\\)\1)|(?:(?<![\*\/\\\\])\/[^\/\*].*?(?<!\\\\)\/(?=([\.\w])|(\s*[,;}\)])))|(?s:\/\*@(?:cc_on|if|elif|else|end).*?@\*\/)/', 37 37 array( &$this, '_ProtectStringsMatch' ), $source ) ; 38 38 }