diff --git a/src/CSS.php b/src/CSS.php index 34ad2c7..ea8e8cd 100644 --- a/src/CSS.php +++ b/src/CSS.php @@ -685,7 +685,7 @@ class CSS extends Minify protected function extractMath() { $functions = array('calc', 'clamp', 'min', 'max'); - $pattern = '/('. implode($functions, '|') .')(\(.+?)(?=$|;|})/m'; + $pattern = '/('. implode('|', $functions) .')(\(.+?)(?=$|;|})/m'; // PHP only supports $this inside anonymous functions since 5.4 $minifier = $this;