You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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"
→ FailsHowever, 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"
→ FailsAnd 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"
→ FailsThe text was updated successfully, but these errors were encountered: