Skip to content

Commit

Permalink
Fixed linebreaks not beeing counted
Browse files Browse the repository at this point in the history
  • Loading branch information
mario-deluna committed Mar 7, 2024
1 parent 187e09e commit 60d650e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ContainerParser/ContainerLexer.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,11 @@ protected function next()
break;
}

// broperly count linebreaks
if ($this->code[$this->offset] === "\n") {
$this->line++;
}

$string .= $this->code[$this->offset];
$this->offset++;
}
Expand Down

0 comments on commit 60d650e

Please sign in to comment.