Skip to content

Commit

Permalink
[WordFilter] Get rid of boundary anchors
Browse files Browse the repository at this point in the history
- This is temporary, will revert afterwards.
  • Loading branch information
Injabie3 committed Dec 26, 2023
1 parent f1851bd commit 924f9fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wordfilter/wordfilter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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})

Expand Down

0 comments on commit 924f9fe

Please sign in to comment.