Fix bug in time splitter, make code more explicit
This commit is contained in:
@ -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 [];
|
||||
|
Reference in New Issue
Block a user