]> git.joonet.de Git - adminer.git/commitdiff
Compile: strip space after CSS comment
authorJakub Vrana <jakub@vrana.cz>
Thu, 13 Mar 2025 17:00:54 +0000 (18:00 +0100)
committerJakub Vrana <jakub@vrana.cz>
Thu, 13 Mar 2025 17:00:54 +0000 (18:00 +0100)
compile.php

index c261563215420d1990d6634bec265aab7f664263..5ecb29b38f42c1c7cc83ec6e8214d52891bbc388 100755 (executable)
@@ -210,7 +210,7 @@ if (!$translations) {
 }
 
 function minify_css($file) {
-       return lzw_compress(preg_replace('~\s*([:;{},])\s*~', '\1', preg_replace('~/\*.*\*/~sU', '', $file)));
+       return lzw_compress(preg_replace('~\s*([:;{},])\s*~', '\1', preg_replace('~/\*.*?\*/\s*~s', '', $file)));
 }
 
 function minify_js($file) {