Skip to content

Commit

Permalink
fix: use name part only
Browse files Browse the repository at this point in the history
  • Loading branch information
imranbarbhuiya committed Oct 11, 2023
1 parent 673ae1c commit 6d9df8c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/constraints/util/emailValidator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
* @copyright 2020 Colin McDonnell
* @see https://github.com/colinhacks/zod/blob/master/LICENSE
*/
const accountRegex =
/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;
const accountRegex = /^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]$/i;

/**
* Validates an email address string based on various checks:
Expand Down

0 comments on commit 6d9df8c

Please sign in to comment.