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

Bans "Niger" because of .case_insensitive(true) #1593

Closed
EchedelleLR opened this issue Apr 25, 2021 · 0 comments
Closed

Bans "Niger" because of .case_insensitive(true) #1593

EchedelleLR opened this issue Apr 25, 2021 · 0 comments

Comments

@EchedelleLR
Copy link

EchedelleLR commented Apr 25, 2021

static ref SLUR_REGEX: Regex = RegexBuilder::new(r"(fag(g|got|tard)?\b|cock\s?sucker(s|ing)?|\bn(i|1)g(\b|g?(a|er)?(s|z)?)\b|mudslime?s?|kikes?|\bspi(c|k)s?\b|\bchinks?|gooks?|bitch(es|ing|y)?|whor(es?|ing)|\btr(a|@)nn?(y|ies?)|\b(b|re|r)tard(ed)?s?)").case_insensitive(true).build().expect("compile regex");

https://en.wikipedia.org/wiki/Niger and https://en.wikipedia.org/wiki/Niger_River.

I understand banning "niger" but "Niger" is a different case.

@EchedelleLR EchedelleLR changed the title Bans "Niger" because of .case_insensitive Bans "Niger" because of .case_insensitive(true) Apr 25, 2021
dessalines added a commit that referenced this issue Apr 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant