Allow splitting "Jahr 1920"
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user