diff --git a/src/renderer/lib/validateUserId.ts b/src/renderer/lib/validateUserId.ts index 562ea15b0..82fbacc1a 100644 --- a/src/renderer/lib/validateUserId.ts +++ b/src/renderer/lib/validateUserId.ts @@ -11,7 +11,7 @@ export interface ValidateUserIdResponse { export const validateUserId = async (userId: string, timeout = 2500): Promise => { // First check that the user id is only alphanumeric - if (!userId.match(/^[0-9a-z]+$/)) { + if (!userId.match(/^[0-9A-z]+$/)) { throw new Error("Invalid user ID format"); }