From 68a9d89eba640010c8699bcc7c7d98f3e9fa3f04 Mon Sep 17 00:00:00 2001 From: Sergio Mendolia Date: Sun, 24 Sep 2023 14:54:31 +0200 Subject: [PATCH] accept uppercase --- src/Service/BookFileSystemManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Service/BookFileSystemManager.php b/src/Service/BookFileSystemManager.php index 292907c7..20fd4e7c 100644 --- a/src/Service/BookFileSystemManager.php +++ b/src/Service/BookFileSystemManager.php @@ -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');