mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
No need to escape ) inside [] in regular expressions.
This commit is contained in:
parent
19fe762e10
commit
7dc453b58b
1 changed files with 2 additions and 2 deletions
|
@ -183,8 +183,8 @@ var SvgImporter = this.SvgImporter = new function() {
|
|||
|
||||
var definitions = {};
|
||||
function getDefinition(value) {
|
||||
var matches = value.match(/#([^\)']+)/);
|
||||
return definitions[matches ? matches[1] : value];
|
||||
var match = value.match(/#([^)']+)/);
|
||||
return definitions[match ? match[1] : value];
|
||||
}
|
||||
|
||||
var importers = {
|
||||
|
|
Loading…
Reference in a new issue