mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-30 10:02:17 +00:00
better check for profane username
This commit is contained in:
@@ -33,7 +33,7 @@ export function fixProfaneUsername(username: string): string {
|
||||
}
|
||||
|
||||
export function isProfaneUsername(username: string): boolean {
|
||||
return matcher.hasMatch(username);
|
||||
return matcher.hasMatch(username) || username.toLowerCase().includes("nig");
|
||||
}
|
||||
|
||||
export function validateUsername(username: string): {
|
||||
|
||||
Reference in New Issue
Block a user