Skip to content
Snippets Groups Projects
Commit c7b32d6c authored by SpiritCroc's avatar SpiritCroc
Browse files

Allow one-digit hour for german time

E.g. !reminder morgen um 8:30
instead of !reminder morgen um 08:30
parent 6ebfc8ca
No related branches found
No related tags found
No related merge requests found
...@@ -134,7 +134,7 @@ locales["de_de"] = Locale( ...@@ -134,7 +134,7 @@ locales["de_de"] = Locale(
"don": TH, "fre": FR, "sam": SA, "son": SU, "don": TH, "fre": FR, "sam": SA, "son": SU,
}, substr=3), }, substr=3),
time=RegexMatcher(r"\s?(?:um\s)?" time=RegexMatcher(r"\s?(?:um\s)?"
r"(?P<hour>\d{2})" r"(?P<hour>\d{1,2})"
r"[:.](?P<minute>\d{2})" r"[:.](?P<minute>\d{2})"
r"(?:[:.](?P<second>\d{2}))?" r"(?:[:.](?P<second>\d{2}))?"
r"(?:\s|$)"), r"(?:\s|$)"),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment