-
Notifications
You must be signed in to change notification settings - Fork 393
Mass.Parse Error on ToString(MassUnit.ShortTon) and ToString(MassUnit.LongTon) #253
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
Comments
Hi, thanks for pointing that out, I was not aware. It currently reads any non-whitespace after the value as the unit, which means it only reads a single word. The units you posted have two word unit abbrevations; "short tn" and "long tn". If you want to take a stab at fixing the regex, please do. If not I might find some time this weekend to look into this. |
Sure, I'll try doing it tomorrow. |
I didn't see you added the new commit, will review next week as I'm away. |
I verified the issue @gojanpaolo was seeing has been resolved from #265, which is in release 3.68.
|
Thanks, I also verified this just now. |
These lines throws an error:
Mass.Parse(new Mass().ToString(MassUnit.ShortTon));
Mass.Parse(new Mass().ToString(MassUnit.LongTon));
The text was updated successfully, but these errors were encountered: