Fix bug in time splitter, make code more explicit

This commit is contained in:
2022-01-09 22:19:22 +01:00
parent 109f18e63c
commit 9132745631
2 changed files with 3 additions and 3 deletions

View File

@ -1016,7 +1016,7 @@ final class NodaTimeSplitter {
// Skip 1200-1300
if (!empty(self::attempt_splitting($datum))) return [];
if (strlen($datum) === 9 and substr($datum, 4, 1)) return [];
if (strlen($datum) === 9 and substr($datum, 4, 1) !== '-') return [];
if (empty($startEnd = self::check_is_timespan_from_till($datum))) {
return [];