Skip to content

Commit

Permalink
Merge pull request #270 from ARCANEDEV/patch-1
Browse files Browse the repository at this point in the history
Using the file name pattern from the filesystem (configurable)
  • Loading branch information
arcanedev-maroc authored Apr 13, 2019
2 parents 7323390 + 67c757a commit 9ae1d23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Utilities/LogChecker.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit 9ae1d23

Please sign in to comment.