typo in generated filter

This commit is contained in:
Peli de Halleux 2018-02-01 14:08:28 -08:00
parent c7cb300cd9
commit d7ef7c353c

View File

@ -18,7 +18,7 @@ namespace pxsim.visuals {
return `id="${this.normalizeId(id)}"`;
});
xml = xml.replace(/url\(#(.*?)\)/g, (m: string, id: string) => {
return `url(#${this.normalizeId(id)}`;
return `url(#${this.normalizeId(id)})`;
});
xml = xml.replace(/xlink:href=\"#(.*?)\"/g, (m: string, id: string) => {
return `xlink:href="#${this.normalizeId(id)}"`;