allow spaces, increase max username length to 20

This commit is contained in:
Evan
2025-01-24 14:47:34 -08:00
parent d6b2a46be5
commit e4d7686b80
+2 -2
View File
@@ -1,7 +1,7 @@
export const MIN_USERNAME_LENGTH = 3;
export const MAX_USERNAME_LENGTH = 15;
export const MAX_USERNAME_LENGTH = 20;
const validPattern = /^[a-zA-Z0-9_]+$/; // Alphanumeric and underscores
const validPattern = /^[a-zA-Z0-9_ ]+$/;
export function validateUsername(username: string): { isValid: boolean; error?: string } {