Add condition to split times like "xxxx bis yyyy"
This commit is contained in:
		| @@ -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); |         $datum = \str_replace(". ", ".", $datum); | ||||||
|  |  | ||||||
|         if (self::stri_occurs($datum, self::STOP_STRINGS_GERMAN)) { |         if (self::stri_occurs($datum, self::STOP_STRINGS_GERMAN)) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user