Revert "ultra mega special case (lua string matching fuckery)"

This reverts commit 6076d4b179.
This commit is contained in:
tommy aka doge 2022-09-11 22:00:48 -04:00
parent 6076d4b179
commit 8bb659bd61

View File

@ -49,7 +49,8 @@ for _, game in next, API.GAMES do
if type(k)=='string' then
for i = 1, self.count do
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
end
end