Changeset 2202

Show
Ignore:
Timestamp:
2008-07-10 13:09:44 (5 months ago)
Author:
fredck
Message:

Fixed #1240 : Single line style comments where breaking multiple lines comments in some cases.

Location:
FCKpackager/trunk
Files:
1 added
3 modified

Legend:

Unmodified
Added
Removed
  • FCKpackager/trunk/fckpackager.php

    r2078 r2202  
    1 #!/usr/bin/php -q 
     1#!/usr/bin/php -q 
    22<?php 
    33/* 
     
    307307                $script = $stringsProc->ProtectStrings( $script ) ; 
    308308 
    309                 // Remove "//" comments 
    310                 $script = preg_replace( 
    311                         '/\/\/.*$/m', 
    312                         '', $script ) ; 
    313  
    314309                // Remove "/* */" comments 
    315310                $script = preg_replace( 
     
    317312                        '', $script ) ; 
    318313 
     314                // Remove "//" comments 
     315                $script = preg_replace( 
     316                                '/\/\/.*$/m', 
     317                                '', $script ) ; 
     318                 
    319319                // Remove spaces before the ";" at the end of the lines 
    320320                $script = preg_replace( 
  • FCKpackager/trunk/_source/includes/fckjavascriptcompressor.inc

    r2078 r2202  
    4242                $script = $stringsProc->ProtectStrings( $script ) ; 
    4343 
    44                 // Remove "//" comments 
    45                 $script = preg_replace( 
    46                         '/\/\/.*$/m', 
    47                         '', $script ) ; 
    48  
    4944                // Remove "/* */" comments 
    5045                $script = preg_replace( 
     
    5247                        '', $script ) ; 
    5348 
     49                // Remove "//" comments 
     50                $script = preg_replace( 
     51                                '/\/\/.*$/m', 
     52                                '', $script ) ; 
     53                 
    5454                // Remove spaces before the ";" at the end of the lines 
    5555                $script = preg_replace(