diff --git a/wordfilter/wordfilter.py b/wordfilter/wordfilter.py index 85cdc43..5ffa381 100644 --- a/wordfilter/wordfilter.py +++ b/wordfilter/wordfilter.py @@ -503,7 +503,7 @@ async def checkWords( for word in filteredWords: timesMatched = len( - re.findall(r"\b" + word + r"\b", originalMsg, flags=re.IGNORECASE) + re.findall(word, originalMsg, flags=re.IGNORECASE) ) filterStats.update({word: filterStats.get(word, 0) + timesMatched})