Skip to content

Commit

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

0 comments on commit 1bc2bdd

Please sign in to comment.