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

Prefix handling updates from olbrich/ruby-units#98 #11

Closed rage-shadowman closed 10 years ago

rage-shadowman commented 10 years ago
  1. Throw "Unit not recognized" error on invalid prefixes (such as "mmm").
  2. Add "mc" as alternative prefix for "micro" (apparently used in medical abbreviations such as mcg -- microgram).

These changes do not appear to break any existing unit tests.

Added new unit tests for the new functionality.

See: https://github.com/olbrich/ruby-units/pull/98

gentooboontoo commented 10 years ago

Thanks a lot. Good catch and nice fix concerning 'mmm' bug.