- Timestamp:
- 2008-07-21 12:23:35 (6 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
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 }