Commit dd4b959a authored by Steven Wittens's avatar Steven Wittens
Browse files

#102597: Fix overzealous CSS compressor.

parent 72d80d20
...@@ -1503,9 +1503,9 @@ function drupal_build_css_cache($types, $filename) { ...@@ -1503,9 +1503,9 @@ function drupal_build_css_cache($types, $filename) {
// Perform some safe CSS optimizations. // Perform some safe CSS optimizations.
$data = preg_replace('< $data = preg_replace('<
\s*([@{}:;\)])\s* | # Remove whitespace around separators. \s*([@{}:;,]|\)\s|\s\()\s* | # Remove whitespace around separators, but keep space around parentheses.
/\*([^*\\\\]|\*(?!/))+\*/ | # Remove comments that are not CSS hacks. /\*([^*\\\\]|\*(?!/))+\*/ | # Remove comments that are not CSS hacks.
[\n\r] # Remove line breaks. [\n\r] # Remove line breaks.
>x', '\1', $data); >x', '\1', $data);
// Create the CSS file. // Create the CSS file.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment