numbro
numbro copied to clipboard
Bytes formatter doesn't respect space separation
Using 0.00b
and 0.00 b
gives the same output (notice the space), no space separation with the 2nd one. The formatter is using state.currentAbbreviations()
, but that doesn't contain the spaced
parameter (and I don't think you can actually set it.) - it works in tests, however.
Using let options = Object.assign({}, defaultOptions, providedFormat);
with options.spaceSeparated
makes it work.
Sadly I don't have time to create a PR, but I hope I could help to get it fixed soon.
thanks, I'll have a look asap
This bug is also visible in the documentation of the v2 API:
got the same issue
got the same issue
Assuming this is now fixed with #411