No need for RegExp group in match statement.

This commit is contained in:
Jürg Lehni 2013-11-02 13:25:03 +01:00
parent 7b1f118aed
commit 4f32cc2eea

View file

@ -117,7 +117,7 @@ var PathItem = Item.extend(/** @lends PathItem# */{
cmd = part[0],
lower = cmd.toLowerCase();
// Match all coordinate values
coords = part.match(/([+-]?(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)/g);
coords = part.match(/[+-]?(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?/g);
var length = coords && coords.length;
relative = cmd === lower;
switch (lower) {