From 6ebfc8ca61410b4f941ad61c99c4a8600cb5468d Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Sat, 15 Aug 2020 14:07:05 +0300 Subject: [PATCH] Add missing suffix to German timedelta regex Closes #14 --- reminder/locales.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reminder/locales.py b/reminder/locales.py index 8a5e1ac..2968104 100644 --- a/reminder/locales.py +++ b/reminder/locales.py @@ -115,7 +115,8 @@ rf"(?:(?P{number})\s?tag(?:en)?{td_sep_de})?" rf"(?:(?P{number})\s?stunden?{td_sep_de})?" rf"(?:(?P{number})\s?minuten?{td_sep_de})?" - rf"(?:(?P{number})\s?sekunden?)?"), + rf"(?:(?P{number})\s?sekunden?)?" + r"(?:\s|$)"), date=ShortYearMatcher( r"(?P\d{1,2})\.(?P\d{1,2})\.(?P\d{2}(?:\d{2})?)(?:\s|$)"), weekday=WeekdayMatcher(pattern=r"(?:heute"