From 70c38f37e16bfcb28e1ac9c75bc754cfdacf2fc3 Mon Sep 17 00:00:00 2001 From: AardCrowley Date: Mon, 15 Aug 2022 11:28:21 -0400 Subject: [PATCH] Added ability to match punctuation, --- FilterChecker/FilterChecker.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FilterChecker/FilterChecker.xml b/FilterChecker/FilterChecker.xml index bb51244..d413b09 100644 --- a/FilterChecker/FilterChecker.xml +++ b/FilterChecker/FilterChecker.xml @@ -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