Skip to content

Commit

Permalink
tweak for matthiasmullie#301, unnecessary regex?
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
David Scotson committed Mar 22, 2020
1 parent 279046f commit 969f084
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/CSS.php
Expand Up @@ -727,7 +727,6 @@ protected function extractCalcs()
return $placeholder.$rest;
};

$this->registerPattern('/calc(\(.+?)(?=$|;|}|calc\()/', $callback);
$this->registerPattern('/calc(\(.+?)(?=$|;|}|calc\()/m', $callback);
}

Expand Down

0 comments on commit 969f084

Please sign in to comment.