fix: email-address with apostrophe not accepted (#15535)

Co-authored-by: Keith Williams <[email protected]>
Co-authored-by: Omar López <[email protected]>
Co-authored-by: Amit Sharma <[email protected]>
This commit is contained in:
authored and GitHub committed 2024-10-15 00:21:26 +00:00
1 parent 5927b42560
commit 2be9fc8bc0
27 files changed
+77 -42

No files matched your search

+2 -1
View File
@@ -4,6 +4,7 @@ import { useFormContext } from "react-hook-form";
import z from "zod";
import { HOSTED_CAL_FEATURES } from "@calcom/lib/constants";
import { emailRegex } from "@calcom/lib/emailSchema";
import { LastUsed, useLastUsed } from "@calcom/lib/hooks/useLastUsed";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { trpc } from "@calcom/trpc/react";
@@ -17,7 +18,7 @@ interface Props {
}
const schema = z.object({
email: z.string().email({ message: "Please enter a valid email" }),
email: z.string().regex(emailRegex, { message: "Please enter a valid email" }),
});
export function SAMLLogin({