From 1bc2bddce1a531b16da3606142dd72107207b4ce Mon Sep 17 00:00:00 2001 From: Scott Dutton Date: Wed, 19 Jan 2022 14:41:07 +0000 Subject: [PATCH] Adjust magic number check format --- src/PhpMndLoader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PhpMndLoader.php b/src/PhpMndLoader.php index 844005c..57d36e0 100644 --- a/src/PhpMndLoader.php +++ b/src/PhpMndLoader.php @@ -19,7 +19,7 @@ public function parseLines() { while (($line = fgets($this->file)) !== false) { $matches = []; - if (preg_match("/^(?[^:]+):(?[0-9]+)\. (?.+)/", $line, $matches)) { + if (preg_match("/^(?[^:]+):(?[0-9]+)\.? (?.+)/", $line, $matches)) { $this->invalidLines [$matches['filename']] [$matches['lineNo']][] = $matches['message'];