1
0
mirror of https://github.com/svg/svgo.git synced 2025-07-29 20:21:14 +03:00

Don’t round version attribute (#1028)

Fixes #1003
This commit is contained in:
Taylor Hunt
2018-09-14 06:18:38 -04:00
committed by Lev Solntsev
parent 174c372080
commit ba07843565

View File

@ -48,6 +48,9 @@ exports.fn = function(item, params) {
}
item.eachAttr(function(attr) {
// The `version` attribute is a text string and cannot be rounded
if (attr.name === 'version') { return }
var match = attr.value.match(regNumericValues);
// if attribute value matches regNumericValues