Skip to content

Commit

Permalink
Merge 7e8d179 into 9ba1b45
Browse files Browse the repository at this point in the history
  • Loading branch information
pcfreak30 committed May 26, 2020
2 parents 9ba1b45 + 7e8d179 commit 1d101f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/JS.php
Expand Up @@ -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('/(?<!\));(\}|$)/s', '\\1', $content);
$content = ltrim($content, ';');

// get rid of remaining whitespace af beginning/end
Expand Down

0 comments on commit 1d101f1

Please sign in to comment.