From 7e8d1796b385234c27e9a1765cbd4871c49dd42c Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Tue, 26 May 2020 15:17:05 -0400 Subject: [PATCH] * Don't strip semicolons after closing parentheses --- src/JS.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/JS.php b/src/JS.php index 92389cdd..c3556dc0 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('/(?