js-quantities icon indicating copy to clipboard operation
js-quantities copied to clipboard

Parsing fails for scalars with trailing dot

Open zenithlight opened this issue 5 years ago • 0 comments

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.

zenithlight avatar Feb 05 '20 21:02 zenithlight