exact text match

This commit is contained in:
Vitaliy olkhin 2025-01-27 12:19:35 +05:00
parent 869cbb0d61
commit 4884c73c3a
2 changed files with 3 additions and 1 deletions

2
.gitignore vendored
View File

@ -109,5 +109,7 @@ $RECYCLE.BIN/
# Windows shortcuts
*.lnk
# IDEA
.idea/*
# End of https://www.gitignore.io/api/lua,linux,macos,windows

View File

@ -63,7 +63,7 @@ end
function filter.check_message(name, message)
for _, w in ipairs(words) do
if string.find(message:lower(), "%f[%a]" .. w .. "%f[%A]") then
if string.find(message:lower(), w) then
return false
end
end