Navigation Menu

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

Fails to parse when numbers that are greater than 99 AND divisible by 10 are used #56

Open
johnnybaseball opened this issue Apr 9, 2013 · 0 comments

Comments

@johnnybaseball
Copy link

I'm in the situation where I want to specify a period, e.g. "x days," or "y minutes." This works for all values x and y that are less than 100 (and greater than 0), however, once x and y are greater than 99 and less than 1000, if they are divisible by 10, they fail to parse.

"90 days"  → parses fine
"100 days" → Fails
"101 days" → parses fine
"110 days" → Fails

However, that's not the whole story either, for numbers greater than 999 and less than 10,000 it seems that if it's divisible by 10 it parses, but if it is divisible by 100 it fails to parse.

"1010 minutes" → parses fine
"1100 minutes" → Fails
"5699 minutes" → parses fine
"5700 minutes" → Fails

And as digits are added it's hard to figure out the pattern

"1010 minutes"     → parses fine
"10010 minutes"    → Fails
"100010 minutes"   → parses fine
"1000010 minutes"  → Fails
"10000010 minutes" → Fails

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant