diff --git a/src/JS.php b/src/JS.php index 92389cd..c3556dc 100644 --- a/src/JS.php +++ b/src/JS.php @@ -432,7 +432,7 @@ protected function stripWhitespace($content) * script: ASI will kick in here & we're all about minifying. * Semicolons at beginning of the file don't make any sense either. */ - $content = preg_replace('/;(\}|$)/s', '\\1', $content); + $content = preg_replace('/(?