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

#102597: Fix overzealous CSS compressor.

parent 72d80d20
......@@ -1503,7 +1503,7 @@ function drupal_build_css_cache($types, $filename) {
// Perform some safe CSS optimizations.
$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.
[\n\r] # Remove line breaks.
>x', '\1', $data);
......
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