Changeset 1977 for FCKreleaser/trunk/fckreleaser.php
- Timestamp:
- 2008-05-09 18:21:09 (7 months ago)
- Files:
-
- 1 modified
-
FCKreleaser/trunk/fckreleaser.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
FCKreleaser/trunk/fckreleaser.php
r1278 r1977 1 #!/usr/bin/php -q1 #!/usr/bin/php -q 2 2 <?php 3 3 /* … … 627 627 ' ', $script ) ; 628 628 629 // Concatenate lines that end with "}" using a ";" (except for "else" and "catch" cases). 629 // Concatenate lines that end with "}" using a ";", except for "else", 630 // "while", "catch" and "finally" cases, or when followed by, "'", ";", 631 // "}" or ")". 630 632 $script = preg_replace( 631 '/\s*}\s*[\n\r]+\s*(?!\s*(else|catch| }))/s',633 '/\s*}\s*[\n\r]+\s*(?!\s*(else|catch|finally|while|[}\),;]))/s', 632 634 '};', $script ) ; 633 635