mirror of
https://github.com/matthiasmullie/minify.git
synced 2025-02-22 19:52:50 +01:00
parent
dfae0665d7
commit
759f0871f7
@ -740,7 +740,7 @@ class CSS extends Minify
|
||||
// PHP only supports $this inside anonymous functions since 5.4
|
||||
$minifier = $this;
|
||||
$this->registerPattern(
|
||||
'/(?<=^|[;}])(--[^:;{}"\'\s]+)\s*:([^;{}]+)/m',
|
||||
'/(?<=^|[;}])\s*(--[^:;{}"\'\s]+)\s*:([^;{}]+)/m',
|
||||
function ($match) use ($minifier) {
|
||||
$placeholder = '--custom-'. count($minifier->extracted) . ':0';
|
||||
$minifier->extracted[$placeholder] = $match[1] .':'. trim($match[2]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user