mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
No need for RegExp group in match statement.
This commit is contained in:
parent
7b1f118aed
commit
4f32cc2eea
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue