Enable splitting of es évek years

This commit is contained in:
Joshua Ramon Enslin 2020-09-24 13:24:48 +02:00 committed by Stefan Rohde-Enslin
parent 36d8257ca0
commit ddaa31646c

View File

@ -659,13 +659,13 @@ final class NodaTimeSplitter {
$datum = self::clean_input($datum);
$bcBceIndicator = '+';
if (preg_match("/^[0-9]0(er\ Jahre)$/", $datum)) {
if (preg_match("/^[0-9]0(er\ Jahre|\-es\ évek|\-as\ \évek)$/", $datum)) {
$start = "19" . substr($datum, 0, 2);
$ende = (string)(intval($start) + 9);
return [$start, $ende, "00", "00", $bcBceIndicator, ""];
}
if (preg_match("/^[0-9][0-9][0-9]0(er\ Jahre)$/", $datum)) {
if (preg_match("/^[0-9][0-9][0-9]0(er\ Jahre|\-es\ évek|\-as\ \évek)$/", $datum)) {
$start = substr($datum, 0, 4);
$ende = (string)(intval($start) + 9);
return [$start, $ende, "00", "00", $bcBceIndicator, ""];