Allow splitting "Jahr 1920"

This commit is contained in:
jrenslin committed 2026-02-21 18:29:16 +01:00
1 parent 7852377a8d
commit 3f2b9091dc
2 files changed
+18

No files matched your search

+4
View File
@@ -355,6 +355,10 @@ final class NodaTimeSplitter {
}
}
if (\preg_match("/^(Jahr|Jahre)\ [0-9]{4}$/", $datum)) {
$end = \substr($datum, -4);
return new NodaSplitTime($end, $end);
}
if (\preg_match("/^[0-9]{4}\ bis\ [0-9]{4}$/", $datum)) {
$start = \substr($datum, 0, 4);
$end = \substr($datum, -4);