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

Unrecognized Units #85

Closed KogAtlas closed 7 years ago

KogAtlas commented 7 years ago

Qty.getUnits("length") returns the type of redshift but trying to pass that back into a method results in an error about the unit not being recognized. This seems to be because the aliases for redshift only include ["z", "red-shift"].

rage-shadowman commented 7 years ago

Why not submit a pull request after adding the missing "redshift" alias in the src/quantities/definitions.js file?