dateparser
dateparser copied to clipboard
Regression dates with dots and spaces
Since upgrading from 0.7.6 to 1.0.0 or 1.1.0, dates with dots and spaces are not parsed correctly:
from datetime import datetime
from dateparser import parse
# both assert pass in `0.7.6` but not in `1.0.0` or `1.1.0`
assert parse("26. 10.21") == datetime(2021, 10, 26)
assert parse("26. 10.21", settings={"STRICT_PARSING": True}) == datetime(2021, 10, 26)
Is this intended behavior or a bug with the new version? This might be related to https://github.com/scrapinghub/dateparser/pull/741
Thanks!