Fixed rank:print()

This commit is contained in:
Cooldude2606
2017-12-11 18:31:38 +00:00
parent 1859b9ca9b
commit 9feda46d5e
3 changed files with 13 additions and 6 deletions

View File

@@ -491,7 +491,7 @@ end
function table.autokey(tbl,str)
local _return = {}
for key,value in pairs(tbl) do
if string.contains(string.lower(str),string.lower(key)) then table.insert(_return,value) end
if string.contains(string.lower(key),string.lower(str)) then table.insert(_return,value) end
end
return _return[1] or false
end