Skip to content

Commit

Permalink
fix: userId validation not checking capitals
Browse files Browse the repository at this point in the history
  • Loading branch information
NikhilNarayana committed Jun 24, 2021
1 parent 723e417 commit 3346cad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/lib/validateUserId.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export interface ValidateUserIdResponse {

export const validateUserId = async (userId: string, timeout = 2500): Promise<ValidateUserIdResponse> => {
// 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");
}

Expand Down

0 comments on commit 3346cad

Please sign in to comment.