Skip to content

Commit

Permalink
accept uppercase
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioMendolia committed Sep 24, 2023
1 parent 081b0ab commit 68a9d89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Service/BookFileSystemManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ private function extractFromRarArchive(\SplFileInfo $bookFile, Book $book): Book
sort($entries);

$entries = array_values(array_filter($entries, static function ($entry) {
return str_ends_with($entry, '.jpg') || str_ends_with($entry, '.jpeg') || str_ends_with($entry, '.png');
return str_ends_with($entry, '.jpg') || str_ends_with($entry, '.JPG') || str_ends_with($entry, '.jpeg') || str_ends_with($entry, '.png');
}));
if (count($entries) === 0) {
$this->logger->error('no errors');
Expand Down

0 comments on commit 68a9d89

Please sign in to comment.