Commit Graph
5 Commits
Author SHA1 Message Date
dualfroz 17b827e907 Describe this repository 2026-10-22 21:02:45 +02:00
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
upstream 3da8421ddf Upstream avoidwork/filesize.js state of the touched files before cc6ad645b3 2026-09-04 04:49:30 +02:00
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
upstream 6758bfef36 Upstream avoidwork/filesize.js state of the touched files before 15b1dba9c6 2026-09-04 04:49:30 +02:00