mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-08-14 06:59:06 -04: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
|
// 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.
|
// normal path based on the amount of moveTo commands inside it.
|
||||||
var data = node.getAttribute('d'),
|
var data = node.getAttribute('d'),
|
||||||
param = { pathData: data, insert: false };
|
param = { pathData: data };
|
||||||
// If there are multiple moveTo commands or a closePath command followed
|
// If there are multiple moveTo commands or a closePath command followed
|
||||||
// by other commands, we have a CompoundPath:
|
// by other commands, we have a CompoundPath:
|
||||||
return data.match(/m/gi).length > 1 || /z\S+/i.test(data)
|
return data.match(/m/gi).length > 1 || /z\S+/i.test(data)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue