Skip to content

Dateparser can not handle accute accent #1055

Description

@DominiqueLade

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))]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions