1
0
mirror of https://github.com/svg/svgo.git synced 2025-08-06 04:22:39 +03:00

Fix an error with string replace() method on attributes caused by #198

This commit is contained in:
GreLI
2014-08-02 15:46:28 +04:00
parent 44dd73fca5
commit c3baa8d6bc

View File

@@ -259,7 +259,7 @@ JS2SVG.prototype.createAttrs = function(elem) {
attrs += ' ' + attrs += ' ' +
attr.name + attr.name +
this.config.attrStart + this.config.attrStart +
attr.value.replace(/"/g, '"') + String(attr.value).replace(/"/g, '"') +
this.config.attrEnd; this.config.attrEnd;
}, this); }, this);