We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfdf29d commit b4ef0dfCopy full SHA for b4ef0df
1 file changed
apps/webapp/app/utils/emailValidation.ts
@@ -4,5 +4,5 @@ export const MAX_EMAIL_LENGTH = 254;
4
5
export const emailSchema = z
6
.string()
7
- .max(MAX_EMAIL_LENGTH, `Email must be ${MAX_EMAIL_LENGTH} characters or fewer`)
8
- .pipe(z.string().email());
+ .email()
+ .max(MAX_EMAIL_LENGTH, `Email must be ${MAX_EMAIL_LENGTH} characters or fewer`);
0 commit comments