ShailChoksi / text2digits

Converts text such as "twenty three" to number/digit "23" in any sentence
MIT License
66 stars 22 forks source link

Convert method not working when number separated by a hyphen #29

Open isag91 opened 4 years ago

isag91 commented 4 years ago

When the input to the convert_to_digits function contains numbers separated by hyphens, only the last number will be returned. This is an issue for dates, for instance.

t2d.convert('11-08-1998') '1998' t2d.convert('1939-45') '45'