games can only be indexed by "surf" or "bhop" instead of pattern matched string

This commit is contained in:
tommy aka doge 2022-09-11 23:01:01 -04:00
parent 6b2a341be5
commit 3f9eace43c

View File

@ -31,7 +31,7 @@ setmetatable(STYLES,{__index=function(self,i)
end})
setmetatable(GAMES,{__index=function(self,i)
for ix,v in pairs(self) do
if string.sub(tostring(ix):lower(),1,#i):find(i:lower()) then
if tostring(ix):lower()==i:lower() then
return self[ix]
end
end