make filename extension downcase for comparing

This commit is contained in:
Leeingnyo 2021-01-25 23:13:35 +09:00
parent 54cd15d542
commit c51cb28df2

View File

@ -36,7 +36,7 @@ class Title
@title_ids << title.id
next
end
if [".zip", ".cbz", ".rar", ".cbr"].includes? File.extname path
if [".zip", ".cbz", ".rar", ".cbr"].includes? (File.extname path).downcase
entry = Entry.new path, self
@entries << entry if entry.pages > 0 || entry.err_msg
end