Skip to content

Commit

Permalink
fix: M/m followed by coordinates should be parsed as L/l (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
xsrf committed Dec 13, 2020
1 parent e77713e commit 6c4f538
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions extension/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,9 @@ function reparseSVGPath(pathData) {
} else {
// additional coordinates are parsed using the last known command
idx--;
// If the last used command was M/m this one will be L/l
if(lastCmd == 'M') lastCmd = 'L';
if(lastCmd == 'm') lastCmd = 'l';
}
switch(lastCmd) {
case 'M':
Expand Down

0 comments on commit 6c4f538

Please sign in to comment.