mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-07 13:22:07 -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],
|
cmd = part[0],
|
||||||
lower = cmd.toLowerCase();
|
lower = cmd.toLowerCase();
|
||||||
// Match all coordinate values
|
// 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;
|
var length = coords && coords.length;
|
||||||
relative = cmd === lower;
|
relative = cmd === lower;
|
||||||
switch (lower) {
|
switch (lower) {
|
||||||
|
|
Loading…
Reference in a new issue