diff --git a/src/path/PathItem.js b/src/path/PathItem.js index d5251603..f274247a 100644 --- a/src/path/PathItem.js +++ b/src/path/PathItem.js @@ -220,7 +220,7 @@ var PathItem = Item.extend(/** @lends PathItem# */{ coords = part.match(/[+-]?(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?/g); var length = coords && coords.length; relative = command === lower; - if (previous === 'z' && lower !== 'z') + if (previous === 'z' && !/[mz]/.test(lower)) this.moveTo(current = start); switch (lower) { case 'm':