WoW (lua) için bir addon programlamaya çalışıyorum. Belirli kelimelere dayalı bir sohbet filtresi. Bu sözcüklerin dizisini büyük/küçük harf duyarsız olacak şekilde anlayamıyorum, böylece kelimenin herhangi bir üst/küçük harf bileşimi diziyle eşleşiyor. Herhangi bir fikir çok takdir edilecektir. Teşekkürler!Lua'daki büyük harf duyarsız dizi
local function wordFilter(self,event,msg)
local keyWords = {"word","test","blah","here","code","woot"}
local matchCount = 0;
for _, word in ipairs(keyWords) do
if (string.match(msg, word,)) then
matchCount = matchCount + 1;
end
end
if (matchCount > 1) then
return false;
else
return true;
end
end