dateparser
dateparser copied to clipboard
Dateparser can not handle accute accent
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))]