diff --git a/src/Utilities/LogChecker.php b/src/Utilities/LogChecker.php index 0d6afd2c..5f1780b8 100644 --- a/src/Utilities/LogChecker.php +++ b/src/Utilities/LogChecker.php @@ -304,8 +304,8 @@ private function isSingleLogFile($file) */ private function isInvalidLogDate($file) { - $pattern = '/laravel-(\d){4}-(\d){2}-(\d){2}.log/'; + $pattern = $this->filesystem->getPattern(); - return ((bool) preg_match($pattern, $file, $matches)) === false; + return ((bool) preg_match("/{$pattern}/", $file, $matches)) === false; } }