js-quantities
js-quantities copied to clipboard
Parsing fails for scalars with trailing dot
i.e. Qty('2. mg') will generate a QtyError: Unit not recognized. This was unexpected to me because parseFloat will accept a value with a trailing dot.