Accept an additional type of hyphen / dash in time splitting
This commit is contained in:
		| @@ -549,7 +549,7 @@ final class NodaTimeSplitter { | ||||
|         } | ||||
|  | ||||
|         // 0000-0000 | ||||
|         if (\preg_match("/^[0-9]{4}(\-|\/)[0-9]{4}(\.|)$/", $datum)) { | ||||
|         if (\preg_match("/^[0-9]{4}(\-|\/|\–)[0-9]{4}(\.|)$/", $datum)) { | ||||
|             return new NodaSplitTime(start_year: \substr($datum, 0, 4), end_year: \substr($datum, 5, 4)); | ||||
|         } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user