Skip to content

Commit

Permalink
Adapt path preparation for e notation
Browse files Browse the repository at this point in the history
  • Loading branch information
CWBudde authored Jan 10, 2021
1 parent a402288 commit 63af6f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Tag/Svg/Path.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ 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);
Expand Down

0 comments on commit 63af6f4

Please sign in to comment.