1
0
mirror of https://github.com/mrclay/minify.git synced 2025-08-16 02:54:33 +02:00

+ BMH and MSIE filters to css/hacks.css. Minify_CSS no longer minifies RGB colors in MSIE filters.

This commit is contained in:
Steve Clay
2008-05-14 16:15:09 +00:00
parent 1c1a6f327d
commit e9035109c9
3 changed files with 22 additions and 9 deletions

View File

@@ -126,8 +126,8 @@ class Minify_CSS {
,array('Minify_CSS', '_selectorsCB'), $css);
// minimize hex colors
$css = preg_replace('/#([a-f\\d])\\1([a-f\\d])\\2([a-f\\d])\\3([\\s;\\}])/i'
, '#$1$2$3$4', $css);
$css = preg_replace('/([^=])#([a-f\\d])\\2([a-f\\d])\\3([a-f\\d])\\4([\\s;\\}])/i'
, '$1#$2$3$4$5', $css);
$rewrite = false;
if (isset($options['prependRelativePath'])) {