From c7ed1bd59f0afcc7967f998cf7e944bc03e853be Mon Sep 17 00:00:00 2001 From: Arik Chakma Date: Fri, 12 Jul 2024 20:50:30 +0600 Subject: [PATCH] fix: username input (#6141) --- src/components/UpdateProfile/ProfileUsername.tsx | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/components/UpdateProfile/ProfileUsername.tsx b/src/components/UpdateProfile/ProfileUsername.tsx index 7d2f7532b..27c908b08 100644 --- a/src/components/UpdateProfile/ProfileUsername.tsx +++ b/src/components/UpdateProfile/ProfileUsername.tsx @@ -57,6 +57,8 @@ export function ProfileUsername(props: ProfileUsernameProps) { setIsLoading(false); }; + const USERNAME_REGEX = /^[a-zA-Z0-9]*$/; + return (