Skip to content

Commit

Permalink
Merge pull request #619 from CWBudde/master
Browse files Browse the repository at this point in the history
Update Path.php
  • Loading branch information
spipu authored Oct 6, 2021
2 parents dc3aa12 + 63af6f4 commit 2ce61d3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Tag/Svg/Path.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@ protected function drawSvg($properties)
if ($path) {
// prepare the path
$path = str_replace(',', ' ', $path);
$path = preg_replace('/([a-zA-Z])([0-9\.\-])/', '$1 $2', $path);
$path = preg_replace('/([0-9\.])([a-zA-Z])/', '$1 $2', $path);
$path = preg_replace('/([a-df-zA-DF-Z])([0-9\.\-])/', '$1 $2', $path);
$path = preg_replace('/([0-9\.])([a-df-zA-DF-Z])/', '$1 $2', $path);
$path = preg_replace('/([0-9\.])([-])([0-9\.])/', '$1 $2$3', $path);
$path = preg_replace('/[\s]+/', ' ', trim($path));
$path = preg_replace('/ ([a-z]{2})/', '$1', $path);
$path = preg_replace('/Z([a-zA-Z])/', 'Z $1', $path);
Expand Down

0 comments on commit 2ce61d3

Please sign in to comment.