mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 06:37:23 +01:00
fix(usernames): remove more ratzen fratzen dupe strings
This commit is contained in:
@@ -28,7 +28,7 @@ function usernameContainsInvalidCharacters (username) {
|
||||
|
||||
export function verifyDisplayName (displayName, res) {
|
||||
let issues = [];
|
||||
if (displayName.length < 1 || displayName.length > 30) issues.push(res.t('displayNameWrongLength'));
|
||||
if (displayName.length < 1 || displayName.length > 30) issues.push(res.t('displaynameIssueLength'));
|
||||
if (nameContainsSlur(displayName)) issues.push(res.t('displaynameIssueSlur'));
|
||||
|
||||
return issues;
|
||||
|
||||
Reference in New Issue
Block a user