mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-05 20:32:00 -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 = {};
|
var definitions = {};
|
||||||
function getDefinition(value) {
|
function getDefinition(value) {
|
||||||
var matches = value.match(/#([^\)']+)/);
|
var match = value.match(/#([^)']+)/);
|
||||||
return definitions[matches ? matches[1] : value];
|
return definitions[match ? match[1] : value];
|
||||||
}
|
}
|
||||||
|
|
||||||
var importers = {
|
var importers = {
|
||||||
|
|
Loading…
Reference in a new issue