mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-19 06:00:56 -05:00
Fix failing test.
This commit is contained in:
parent
10c28a301e
commit
4e20a5594e
1 changed files with 1 additions and 1 deletions
|
@ -133,7 +133,7 @@ new function() {
|
|||
// Get the path data, and determine whether it is a compound path or a
|
||||
// normal path based on the amount of moveTo commands inside it.
|
||||
var data = node.getAttribute('d'),
|
||||
param = { pathData: data, insert: false };
|
||||
param = { pathData: data };
|
||||
// If there are multiple moveTo commands or a closePath command followed
|
||||
// by other commands, we have a CompoundPath:
|
||||
return data.match(/m/gi).length > 1 || /z\S+/i.test(data)
|
||||
|
|
Loading…
Reference in a new issue