Skip to content

Commit

Permalink
Using the file name pattern from the filesystem (configurable)
Browse files Browse the repository at this point in the history
  • Loading branch information
arcanedev-maroc committed Apr 13, 2019
1 parent 7323390 commit 67c757a
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 67c757a

Please sign in to comment.