From c632b9bb22692cb429c581921440ae1fe78b18c4 Mon Sep 17 00:00:00 2001 From: David Scotson Date: Sun, 22 Mar 2020 12:57:32 +0000 Subject: [PATCH] tweak for #301, unnecessary regex? It's not clear if both of these are necessary, the second one should just match everything the first one matches plus things within internal lines, so it seems redundant. The unit test commited with it, plus all the others still pass, and there's no diff in the output on a long test file. --- src/CSS.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/CSS.php b/src/CSS.php index ba0788d..196f039 100644 --- a/src/CSS.php +++ b/src/CSS.php @@ -727,7 +727,6 @@ protected function extractCalcs() return $placeholder.$rest; }; - $this->registerPattern('/calc(\(.+?)(?=$|;|}|calc\()/', $callback); $this->registerPattern('/calc(\(.+?)(?=$|;|}|calc\()/m', $callback); }