-
-
Notifications
You must be signed in to change notification settings - Fork 17
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.