Case insensitive search
This commit is contained in:
parent
4a6c9a99e5
commit
fca24f31c3
@ -98,7 +98,7 @@ end
|
||||
local function search(query, threshold)
|
||||
local threshold = threshold or 4
|
||||
local results = find(function(item)
|
||||
local distance = d.distance(query, item.display_name)
|
||||
local distance = d.distance(string.lower(query), string.lower(item.display_name))
|
||||
if distance < threshold then
|
||||
return true, distance
|
||||
else return false end
|
||||
|
Loading…
Reference in New Issue
Block a user