akoumjian/datefinder

find_dates fails when there's a number after a date

alexmadey-oc opened this issue · 1 comments

The following fails to find any dates datefinder.find_dates("9/15/27 144A"). I think datefinder wants to treat the 144A as an hour component, but it fails since 144A is not a valid hour. If I put a valid hour like "9/15/27 12", it parses the 12 as an hour component. A potential solution would be to allow the user to specify that they only want to find dates and not any time components.

06-15 21:21:51.754 5395 5395
2024-06-15 21:21:51.754 5395 5395
same problem