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:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user