From 6614367f62d2cbd9e8f979c9349cd5474b035866 Mon Sep 17 00:00:00 2001 From: Andrey Andreev Date: Tue, 22 Oct 2013 15:00:11 +0300 Subject: Fix CSS minifier --- system/core/Output.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/system/core/Output.php b/system/core/Output.php index 04209d920..719c43256 100644 --- a/system/core/Output.php +++ b/system/core/Output.php @@ -909,12 +909,12 @@ class CI_Output { $next = $array_output[$key + 1]; // Strip spaces preceded/followed by a non-ASCII character - // or not preceded/followed by an alphanumeric - // or not preceded/followed \ $ and _ + // that are not preceded/followed by an alphanumeric character, + // '\', '$', '_', '.' and '#' if ((preg_match('/^[\x20-\x7f]*$/D', $next) OR preg_match('/^[\x20-\x7f]*$/D', $prev)) && ( ! ctype_alnum($next) OR ! ctype_alnum($prev)) - && ! in_array($next, array('\\', '_', '$'), TRUE) - && ! in_array($prev, array('\\', '_', '$'), TRUE) + && ! in_array($next, array('\\', '_', '$', '.', '#'), TRUE) + && ! in_array($prev, array('\\', '_', '$', '.', '#'), TRUE) ) { unset($array_output[$key]); -- cgit v1.2.3-24-g4f1b