Enable splitting of es évek years
This commit is contained in:
parent
36d8257ca0
commit
ddaa31646c
|
@ -659,13 +659,13 @@ final class NodaTimeSplitter {
|
||||||
$datum = self::clean_input($datum);
|
$datum = self::clean_input($datum);
|
||||||
$bcBceIndicator = '+';
|
$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);
|
$start = "19" . substr($datum, 0, 2);
|
||||||
$ende = (string)(intval($start) + 9);
|
$ende = (string)(intval($start) + 9);
|
||||||
return [$start, $ende, "00", "00", $bcBceIndicator, ""];
|
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);
|
$start = substr($datum, 0, 4);
|
||||||
$ende = (string)(intval($start) + 9);
|
$ende = (string)(intval($start) + 9);
|
||||||
return [$start, $ende, "00", "00", $bcBceIndicator, ""];
|
return [$start, $ende, "00", "00", $bcBceIndicator, ""];
|
||||||
|
|
Loading…
Reference in New Issue
Block a user