Skip to content

Commit

Permalink
Merge pull request #90 from esmero/ISSUE-87
Browse files Browse the repository at this point in the history
ISSUE-87: a bug
  • Loading branch information
DiegoPino authored May 2, 2024
2 parents 298e6c4 + 6ce1134 commit d53e904
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/VTTProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ protected function normalizeLines(array $lines): array
$results = [];
foreach ($lines as $index => $line) {
if ($times = $this->validateTimeSpan($line)) {
if ($newline && strlen(trim($newline->getBody()) > 0)) {
if ($newline && strlen(trim($newline->getBody())) > 0) {
// This would be a line added on a previous loop;
$results[] = $newline;
$this->maxTime = ($this->maxTime ?? 0) < $newline->getEndstime() ? $newline->getEndstime() : $this->maxTime;
Expand Down

0 comments on commit d53e904

Please sign in to comment.