Skip to content

Commit

Permalink
Fix mnd output
Browse files Browse the repository at this point in the history
  • Loading branch information
exussum12 committed Jan 19, 2022
1 parent 5a91d87 commit 5449846
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Loaders/PhpMnd.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function parseLines(): array
{
while (($line = fgets($this->file)) !== false) {
$matches = [];
$pattern = "/^(?<filename>[^:]+):(?<lineNo>[0-9]+)\. (?<message>.+)/";
$pattern = "/^(?<filename>[^:]+):(?<lineNo>[0-9]+)\.? (?<message>.+)/";
if (preg_match($pattern, $line, $matches)) {
$this->invalidLines
[$matches['filename']]
Expand Down

0 comments on commit 5449846

Please sign in to comment.