dateparser icon indicating copy to clipboard operation
dateparser copied to clipboard

Dateparser can not handle accute accent

Open DominiqueLade opened this issue 2 years ago • 0 comments

We have a text string where the unicode character U+00b4 (accute accent; ´) is right before the date. Datparser is able to detect the date, but the detected string is empty.

Minimal example:

from dateparser.search import search_dates

text = "ABC´1997."
dates = search_dates(text)
print(dates)

Output:

[('', datetime.datetime(1997, 5, 2, 0, 0))]

Expected output:

[('1997', datetime.datetime(1997, 5, 2, 0, 0))]

DominiqueLade avatar May 02 '22 11:05 DominiqueLade