Changeset 2246


Ignore:
Timestamp:
07/21/2008 02:21:35 PM (7 years ago)
Author:
fredck
Message:

Updated FCKpackager (again).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CKEditor/branches/prototype/_dev/packager/fckpackager.php

    r2239 r2246  
    309309                // Remove "/* */" comments
    310310                $script = preg_replace(
    311                         '/\/\*.*?\*\//s',
     311                        '/(?<!\/)\/\*.*?\*\//s',
    312312                        '', $script ) ;
    313313
     
    702702                // Catches string literals, regular expressions and conditional comments.
    703703                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).*?@\*\/)/',
    705705                        array( &$this, '_ProtectStringsMatch' ), $source ) ;
    706706        }
Note: See TracChangeset for help on using the changeset viewer.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy