Revert "ultra mega special case (lua string matching fuckery)"
This reverts commit 6076d4b179
.
This commit is contained in:
parent
6076d4b179
commit
8bb659bd61
@ -49,7 +49,8 @@ for _, game in next, API.GAMES do
|
|||||||
if type(k)=='string' then
|
if type(k)=='string' then
|
||||||
for i = 1, self.count do
|
for i = 1, self.count do
|
||||||
local v = self[i]
|
local v = self[i]
|
||||||
if type(v) == 'table' and v.DisplayName:lower():find(tostring(k:gsub('%%', '%%%%'):gsub('^%^', '%%^'):gsub('%$$', '%%$'):gsub('%(', '%%('):gsub('%)', '%%)'):gsub('%.', '%%.'):gsub('%[', '%%['):gsub('%]', '%%]'):gsub('%*', '%%*'):gsub('%+', '%%+'):gsub('%-', '%%-'):gsub('%?', '%%?')):lower()) then
|
|
||||||
|
if type(v) == 'table' and v.DisplayName:lower():find(tostring(k):lower()) then
|
||||||
return v
|
return v
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user