Files
avoidwork-filesize.js/tests/unit
dualfroz d0bb0d64af fix(helpers): keep fullform singular for negative one-magnitude values
decorateResult() captured numericValue (used to pick the singular vs
plural fullform suffix) after the negative sign was already prefixed
onto result[0], so filesize(-1, {fullform: true}) compared -1 === 1
and wrongly pluralized to "-1 bytes" instead of "-1 byte". Capture the
magnitude before the sign is applied instead.
2026-09-06 01:13:16 +02:00
..