Compare commits

...

2 Commits

Author SHA1 Message Date
Aleksandr Avdeev
3dd2c91bdc fix - change ":" by "." in utf8 lower 2024-11-12 10:35:55 +03:00
f9492100a4
fix lower_case transformation 2024-11-10 23:12:58 +05:00

View File

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