Added ability to match punctuation,

master
AardCrowley 2 years ago committed by GitHub
parent acf94f2558
commit 70c38f37e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -61,7 +61,7 @@ function OnPluginBroadcast(msg, id, name, text)
end
function filterCheck(str, filter, include)
local start, matchFound, mFilter = 0, false, include .. "%w+"
local start, matchFound, mFilter = 0, false, include .. "[%w%p]+"
for word in str:gmatch(mFilter) do
start = string.find(filter, word:upper())
if start == 1 then

Loading…
Cancel
Save