mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Make the suffix lowercase before comparing.
This commit is contained in:
@@ -16,7 +16,7 @@ function DocumentRegistry:getProvider(file)
|
||||
-- TODO: some implementation based on mime types?
|
||||
for _, provider in ipairs(self.providers) do
|
||||
local suffix = string.sub(file, -string.len(provider.extension) - 1)
|
||||
if suffix == "."..provider.extension then
|
||||
if string.lower(suffix) == "."..provider.extension then
|
||||
-- if extension == provider.extension then
|
||||
return provider.provider
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user