Add condition to split times like "xxxx bis yyyy"
This commit is contained in:
parent
c964053c91
commit
e957db4210
|
@ -391,6 +391,12 @@ final class NodaTimeSplitter {
|
|||
}
|
||||
}
|
||||
|
||||
if (\preg_match("/^[0-9][0-9][0-9][0-9]\ bis [0-9][0-9][0-9][0-9]$/", $datum)) {
|
||||
$start = \substr($datum, 0, 4);
|
||||
$end = \substr($datum, -4);
|
||||
return [$start, $end, "00", "00", "+", ""];
|
||||
}
|
||||
|
||||
$datum = \str_replace(". ", ".", $datum);
|
||||
|
||||
if (self::stri_occurs($datum, self::STOP_STRINGS_GERMAN)) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user