From 275f9dc0bdf3e58aa36b800f55f8648fbc55d8af Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Thu, 4 Jan 2024 11:07:54 +0800 Subject: upgrade --- node_modules/svgo/plugins/cleanupNumericValues.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'node_modules/svgo/plugins/cleanupNumericValues.js') diff --git a/node_modules/svgo/plugins/cleanupNumericValues.js b/node_modules/svgo/plugins/cleanupNumericValues.js index 6a15dddd..9b782c3d 100644 --- a/node_modules/svgo/plugins/cleanupNumericValues.js +++ b/node_modules/svgo/plugins/cleanupNumericValues.js @@ -75,8 +75,8 @@ exports.fn = (_root, params) => { if (convertToPx && units !== '' && units in absoluteLengths) { const pxNum = Number( (absoluteLengths[units] * Number(match[1])).toFixed( - floatPrecision - ) + floatPrecision, + ), ); if (pxNum.toString().length < match[0].length) { num = pxNum; -- cgit v1.2.3