Open RichardFoxworthy opened 6 years ago
For me the word hello
is rendered as *****
I looked into this issue, seems like its a problem with the package we are using. https://github.com/web-mech/badwords/issues/25
We can either A: Switch to a different package, B: fix this issue in the upstream or C: Write our own filter.
I looked into the library, and to filter words like shitshit
, it looks for bad words anywhere in the given word.
This causes a lot more problems as words like document
and title
also get filtered.
I think its better to have exact matching of bad words.
mongodb and cluster are also being filtered
@RichardFoxworthy I think this issue is fixed in 1.0.0-develop
. Try checking it. Cheers 👍
Description:
The bad words filter seems to now be triggering on partial matches - eg it will now filter out the word 'hello', presumably because it includes the word 'hell'. Which I don't consider to be a bad word any way, but whatevs ....
Server Setup Information:
Steps to Reproduce:
Expected behavior:
Actual behavior:
Message will be rendered with a single '*' in place of the word 'hello'
Relevant logs:
NA