Changeset 1976 for FCKpackager/trunk
- Timestamp:
- 2008-05-09 18:20:20 (8 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
FCKpackager/trunk/_source/includes/fckjavascriptcompressor.inc
r156 r1976 72 72 ' ', $script ) ; 73 73 74 // Concatenate lines that end with "}" using a ";" (except for "else" and "catch" cases). 74 // Concatenate lines that end with "}" using a ";", except for "else", 75 // "while", "catch" and "finally" cases, or when followed by, "'", ";", 76 // "}" or ")". 75 77 $script = preg_replace( 76 '/\s*}\s*[\n\r]+\s*(?!\s*(else|catch| }))/s',78 '/\s*}\s*[\n\r]+\s*(?!\s*(else|catch|finally|while|[}\),;]))/s', 77 79 '};', $script ) ; 78 80