From ba07843565aa50cd9dfde0c8806921c14f532096 Mon Sep 17 00:00:00 2001 From: Taylor Hunt Date: Fri, 14 Sep 2018 06:18:38 -0400 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20round=20`version`=20attribute?= =?UTF-8?q?=20(#1028)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #1003 --- plugins/cleanupNumericValues.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/cleanupNumericValues.js b/plugins/cleanupNumericValues.js index e91fdf25..f7c8a1ee 100644 --- a/plugins/cleanupNumericValues.js +++ b/plugins/cleanupNumericValues.js @@ -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