Skip to content

Commit

Permalink
Fix email regex not working with +/-
Browse files Browse the repository at this point in the history
Fix #117
  • Loading branch information
Mikescops committed Jul 27, 2023
1 parent 120da96 commit b07e841
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/dialogs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const askEmailAddress = async (): Promise<string> => {
name: 'login',
message: 'Please enter your email address:',
validate(input: string) {
return /^([\w-.]+@([\w-]+\.)+[\w-]{2,4})$/.test(input) ? true : 'Not a valid email address';
return /^([\w.+-]+@([\w-]+\.)+[\w-]{2,4})$/.test(input) ? true : 'Not a valid email address';
},
},
]);
Expand Down

0 comments on commit b07e841

Please sign in to comment.