diff --git a/src/svg/SvgImporter.js b/src/svg/SvgImporter.js index 4dec73ad..b8b3fd0a 100644 --- a/src/svg/SvgImporter.js +++ b/src/svg/SvgImporter.js @@ -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 = {