Show
Ignore:
Timestamp:
2008-07-21 14:15:18 (6 months ago)
Author:
fredck
Message:

Still fixing the regex to match regexes. This seems to be the final change for it.
Updating also the single file and exe.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • FCKpackager/trunk/_source/includes/fckstringsprocessor.inc

    r2242 r2243  
    3434                // Catches string literals, regular expressions and conditional comments. 
    3535                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).*?@\*\/)/', 
    3737                        array( &$this, '_ProtectStringsMatch' ), $source ) ; 
    3838        }