mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Make file search function completely case-insensitive.
This commit is contained in:
@@ -64,7 +64,7 @@ function FileSearcher:setSearchResult(keywords)
|
||||
self.result = self.files
|
||||
else
|
||||
for __,f in pairs(self.files) do
|
||||
if string.find(string.lower(f.name), keywords) then
|
||||
if string.find(string.lower(f.name), string.lower(keywords)) then
|
||||
table.insert(self.result, f)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user