From fd7c2db0d17e5b53981fef40fe9e3eca46b34038 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Sun, 22 Jan 2006 13:46:13 +0100 Subject: CSS compressor fix darcs-hash:20060122124613-7ad00-41ed03a1d6668874a324db8bc98aee72ab90e277.gz --- lib/exe/css.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/exe') diff --git a/lib/exe/css.php b/lib/exe/css.php index 5973991ef..715d32885 100644 --- a/lib/exe/css.php +++ b/lib/exe/css.php @@ -241,16 +241,16 @@ function css_pluginstyles($mode='screen'){ * @author Andreas Gohr */ function css_compress($css){ + //strip comments through a callback + $css = preg_replace_callback('#(/\*)(.*?)(\*/)#s','css_comment_cb',$css); + //strip (incorrect but common) one line comments - $css = preg_replace('!//.*$!m','',$css); + $css = preg_replace('/(?