akoumjian / datefinder

Find dates inside text using Python and get back datetime objects
http://datefinder.readthedocs.org/en/latest/
MIT License
635 stars 167 forks source link

strict mode fills in and return incomplete dates (that are not supposed to be dates) #183

Open levkeO opened 1 year ago

levkeO commented 1 year ago
import datefinder
list(datefinder.find_dates('results = 3.8, 10', strict=True,source=True))

returns [(datetime.datetime(2023, 3, 10, 0, 0), '3.8, 10')]

but I would expect it to find no dates