Enable splitting of timespans of three-digit year names BC (in German)
This commit is contained in:
parent
c0047a5956
commit
8da158aa77
@ -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 [];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user