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

possible parsing issue #119

Open akurnikova opened 4 years ago

akurnikova commented 4 years ago

I am finding an issue when parsing some strings using your package. The string has dates, but none are returned if certain words are present. Here is a simple example that fails to parse. (just like your use case example).

string_with_dates = """at: 30 May 2010"""

matches = datefinder.find_dates(string_with_dates) for match in matches: print(match)