No need to escape ) inside [] in regular expressions.

This commit is contained in:
Jürg Lehni 2012-11-06 10:52:03 -08:00
parent 19fe762e10
commit 7dc453b58b

View file

@ -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 = {