dualfroz 7b781162ac 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-04 04:49:30 +02:00
S
Description
My contributions to avoidwork/filesize.js: 2 commits
82 KiB
0 Stars 1 Watchers 0 Forks
Languages
JavaScript 100%