Skip to content

Commit

Permalink
Update Path.php
Browse files Browse the repository at this point in the history
Fixes issue spipu#618
  • Loading branch information
CWBudde authored Jan 10, 2021
1 parent 9343a91 commit a402288
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Tag/Svg/Path.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ protected function drawSvg($properties)
$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('/([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 a402288

Please sign in to comment.