@@ -18,4 +18,4 @@ export const isUrl = (string) =>
|
||||
export const isPassword = (string) => zxcvbn(string).score >= 2; // TODO: move to config
|
||||
|
||||
export const isUsername = (string) =>
|
||||
string.length >= 3 && string.length <= 16 && USERNAME_REGEX.test(string);
|
||||
string.length >= 3 && string.length <= 32 && USERNAME_REGEX.test(string);
|
||||
|
||||
Reference in New Issue
Block a user