gentooboontoo / js-quantities

JavaScript library for quantity calculation and unit conversion
http://gentooboontoo.github.io/js-quantities/
MIT License
396 stars 102 forks source link

Infinite loop #74

Closed hakas closed 7 years ago

hakas commented 7 years ago

When calling Qty.Parse('0.11 180°/sec'), the method never returns (I'm guessing an infinite loop). I would expect it to return null. If I change the number or remove the ° symbol it returns null as expected.

spex commented 7 years ago

+1

gentooboontoo commented 7 years ago

Fix merged in master. Thanks for reporting.

tkirda commented 7 years ago

Excellent! Can we get this on NPM?