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
@colinlieberman
it's due to this line in the pre-normalization step:
text.gsub!(/^\s?an? /i,'1 ')
which converts any a/an followed by a space into the numeric '1' which is allowed as a standalone scalar value and interpreted as a time (1pm?). AFAICT it's there to address interpreting "a minute" as "1 minute" or "an hour" as "1 hour" cases.
Apologies if this has already been addressed and I didn't find it when searching.
ruby 2.4.0p0
chronic 0.10.2
First had this issue with the string "A Swiftly Turning Planet", and expected a
nil
return:After some poking around, it looks like it's the letter A followed by a space that's the issue:
The text was updated successfully, but these errors were encountered: