mirror of
https://github.com/svg/svgo.git
synced 2025-08-01 18:46:52 +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 += ' ' +
|
||||
attr.name +
|
||||
this.config.attrStart +
|
||||
attr.value.replace(/"/g, '"') +
|
||||
String(attr.value).replace(/"/g, '"') +
|
||||
this.config.attrEnd;
|
||||
|
||||
}, this);
|
||||
|
Reference in New Issue
Block a user