Enable splitting of timespans of three-digit year names BC (in German)

This commit is contained in:
Joshua Ramon Enslin 2020-09-20 17:33:56 +02:00 committed by Stefan Rohde-Enslin
parent c0047a5956
commit 8da158aa77

View File

@ -295,6 +295,12 @@ final class NodaTimeSplitter {
return [$start, $end, "00", "00", "-"];
}
if (preg_match("/^[0-9][0-9][0-9](\-|\/)[0-9][0-9][0-9] v\. Chr\.$/", $datum)) {
$start = "-" . substr($datum, 0, 3);
$end = "-" . substr($datum, 4, 3);
return [$start, $end, "00", "00", "-"];
}
if (self::stri_occurs($datum, self::STOP_STRINGS_GERMAN)) {
return [];
}