See before

This commit is contained in:
Joshua Ramon Enslin 2025-03-10 04:05:00 +01:00
parent 5b99304b5c
commit 54dd958073
Signed by: jrenslin
GPG Key ID: 46016F84501B70AE

View File

@ -554,7 +554,7 @@ final class NodaTimeSplitter {
}
// 1.900-2.000
if (\preg_match("/^[0-9]\.[0-9][0-9][0-9](\-|\/)[0-9]\.[0-9][0-9][0-9]$/", $datum)) {
if (\preg_match("/^[0-9]\.[0-9][0-9][0-9](\-|\/|\)[0-9]\.[0-9][0-9][0-9]$/", $datum)) {
$datum = \str_replace(".", "", $datum);
return new NodaSplitTime(start_year: \substr($datum, 0, 4), end_year: \substr($datum, 5, 4));
}