akoumjian/datefinder

can't extract the date from following string

TalibCode opened this issue · 1 comments

s="Publication date:08/06/2021 19:43"
print(helper.is_ascii(s))
matches = list(datefinder.find_dates(s))
print(matches)

#it returns empty list

It seems that datefinder can not extract the date if there is a digit following it:

>>> list(datefinder.find_dates("11/20/1972"))
[datetime.datetime(1972, 11, 20, 0, 0)]
>>> list(datefinder.find_dates("11/20/1972 4"))
[]

datefinder version 0.7.3