mhuggins / ruby-measurement

Simple Ruby gem for calculating and converting measurements.
MIT License
46 stars 21 forks source link

Unable to parse mixed fractional numbers #1

Closed mhuggins closed 11 years ago

mhuggins commented 11 years ago

If a measurement includes a mixed fraction (e.g.: "2 1/3 oz."), the parsing logic currently interprets that as "2" for the quantity and "1/3 oz." for the unit. This should instead be parsed as "2 1/3" for the quantity and "oz." for the unit.

Also, consider updating the README to include a fractional example when fixing this.

mhuggins commented 11 years ago

Fixed in 723217c4d54372e3bb060658165667815a6e4f77.