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

chore: update prettier and eslint (#1885)

This commit is contained in:
Seth Falco
2023-12-15 13:10:21 +00:00
committed by GitHub
parent 40544220e8
commit 22533f1ffe
49 changed files with 362 additions and 371 deletions

View File

@ -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;