Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvements to FilterUtil #23

Open
drewdorris opened this issue Apr 17, 2021 · 2 comments
Open

Improvements to FilterUtil #23

drewdorris opened this issue Apr 17, 2021 · 2 comments

Comments

@drewdorris
Copy link
Member

https://github.com/Ruinscraft/ruinscraft-chat/blob/rewrite4/src/main/java/com/ruinscraft/chat/util/FilterUtil.java

  • Does not filter bad words that have an extra character added to the beginning/end of them (besides when a single character besides A and I is in the message)
  • Does not filter words when an additional character or duplicate characters are added in between

Maybe we could try something public like https://gist.github.com/PimDeWitte/c04cc17bc5fa9d7e3aee6670d4105941

@ds58
Copy link
Contributor

ds58 commented Apr 17, 2021

Also https://gist.github.com/Jire/4aa72bd3554cdccdc369c216a230ee56
(in the comments of that gist)

@drewdorris
Copy link
Member Author

The one you posted uses a weird library, I'm going to integrate the first one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants