We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfae066 commit 759f087Copy full SHA for 759f087
src/CSS.php
@@ -740,7 +740,7 @@ protected function extractCustomProperties()
740
// PHP only supports $this inside anonymous functions since 5.4
741
$minifier = $this;
742
$this->registerPattern(
743
- '/(?<=^|[;}])(--[^:;{}"\'\s]+)\s*:([^;{}]+)/m',
+ '/(?<=^|[;}])\s*(--[^:;{}"\'\s]+)\s*:([^;{}]+)/m',
744
function ($match) use ($minifier) {
745
$placeholder = '--custom-'. count($minifier->extracted) . ':0';
746
$minifier->extracted[$placeholder] = $match[1] .':'. trim($match[2]);
0 commit comments