mirror of
https://github.com/matthiasmullie/minify.git
synced 2025-02-21 15:15:46 +01:00
php-cs-fixer
This commit is contained in:
parent
97f118c4c7
commit
d5acb8ce5b
@ -345,7 +345,9 @@ class JS extends Minify
|
||||
array(
|
||||
'/('.implode('|', $operatorsBefore).')\s+/',
|
||||
'/\s+('.implode('|', $operatorsAfter).')/',
|
||||
), '\\1', $content
|
||||
),
|
||||
'\\1',
|
||||
$content
|
||||
);
|
||||
|
||||
// make sure + and - can't be mistaken for, or joined into ++ and --
|
||||
@ -353,7 +355,9 @@ class JS extends Minify
|
||||
array(
|
||||
'/(?<![\+\-])\s*([\+\-])(?![\+\-])/',
|
||||
'/(?<![\+\-])([\+\-])\s*(?![\+\-])/',
|
||||
), '\\1', $content
|
||||
),
|
||||
'\\1',
|
||||
$content
|
||||
);
|
||||
|
||||
// collapse whitespace around reserved words into single space
|
||||
|
Loading…
x
Reference in New Issue
Block a user