-
-
Notifications
You must be signed in to change notification settings - Fork 17
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: use censor
to cure names with slurs
#65
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this PR is not complete yet, mark it as a draft.
It is complete |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO the word ass should be excluded from the list, as it filters benign words such as pass and class, which, given the context of the server, are to be expected in nicknames/usernames.
I dont believe words like that will be effected, but I'm all for excluding ass |
@oSumAtrIX can you review? |
use censor::*;
fn main() {
let censor = Censor::Standard;
println!("{}", censor.check("passport"));
} from my testing, this code returns true. But anyway, such edge-cases are limited pretty much just to the word |
3395c32
to
2a24fe5
Compare
@Ushie Please check if everything works correctly. |
No description provided.