Skip to content

Commit 8d05050

Browse files
authored
Merge pull request #4991 from ablagoev/feature/fix-e-notation-rounded-corners
Fix incorrect parsing of e notation svg command values in graphics.roundPathCorners
2 parents bc182e8 + b31c74a commit 8d05050

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/modules/Graphics.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ class Graphics {
8484

8585
// Split apart the path, handing concatonated letters and numbers
8686
var pathParts = pathString.split(/[,\s]/).reduce(function (parts, part) {
87-
var match = part.match('([a-zA-Z])(.+)')
87+
var match = part.match(/^([a-zA-Z])(.+)/);
8888
if (match) {
8989
parts.push(match[1])
9090
parts.push(match[2])

0 commit comments

Comments
 (0)