Make file search function completely case-insensitive.

This commit is contained in:
Tigran Aivazian
2012-09-15 21:31:00 +01:00
parent 3048311dd5
commit 527421eb86

View File

@@ -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