mirror of
https://github.com/svg/svgo.git
synced 2025-07-29 20:21:14 +03:00
committed by
Lev Solntsev
parent
174c372080
commit
ba07843565
@ -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
|
||||
|
Reference in New Issue
Block a user