Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handling of Redundant Units and Non-space Separators #122

Open
sshaw opened this issue Feb 22, 2015 · 2 comments
Open

Handling of Redundant Units and Non-space Separators #122

sshaw opened this issue Feb 22, 2015 · 2 comments
Labels

Comments

@sshaw
Copy link

sshaw commented Feb 22, 2015

Feature or bug?

irb [2.1.3] (ruby-units)$ Unit("1lbs ,,,,,,, 5oz")
=> 21/16 lbs
irb [2.1.3] (ruby-units)$ Unit("1 lbslbs 5 oz")
=> 21/16 lbs
@olbrich olbrich added this to the Next Release milestone Feb 24, 2015
@olbrich olbrich added the bug label Feb 24, 2015
@kshahkshah
Copy link
Contributor

Since the library isn't designed to parse arbitrary strings looking for units, this isn't a bug. Whether it's a feature though :)

@olbrich
Copy link
Owner

olbrich commented Dec 1, 2016

Actually, I consider that to be a bug

@olbrich olbrich removed this from the Next Release milestone Oct 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants