From c5c1a18bc7a2a4792c2375e8fe0167b5723a7910 Mon Sep 17 00:00:00 2001 From: JP Date: Sun, 29 Mar 2026 09:54:09 +0530 Subject: [PATCH 1/2] fix: add regex validation for domain field in waitlist form --- apps/marketing/src/app/page.tsx | 2 +- apps/web/src/app/wait-list/schema.ts | 14 +++++++++----- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/apps/marketing/src/app/page.tsx b/apps/marketing/src/app/page.tsx index 8d09cea6..01e42fbf 100644 --- a/apps/marketing/src/app/page.tsx +++ b/apps/marketing/src/app/page.tsx @@ -324,7 +324,7 @@ function Pricing() { "Send up to 3000 emails per month", "Send up to 100 emails per day", "Can have 1 contact book", - "Can have 1 domain", + " ", "Can have 1 team member", ]; diff --git a/apps/web/src/app/wait-list/schema.ts b/apps/web/src/app/wait-list/schema.ts index c4a7294c..d176c74e 100644 --- a/apps/web/src/app/wait-list/schema.ts +++ b/apps/web/src/app/wait-list/schema.ts @@ -6,11 +6,15 @@ export const WAITLIST_EMAIL_TYPES = [ ] as const; export const waitlistSubmissionSchema = z.object({ - domain: z - .string({ required_error: "Domain is required" }) - .trim() - .min(1, "Domain is required") - .max(255, "Domain must be 255 characters or fewer"), + domain: z + .string({ required_error: "Domain is required" }) + .trim() + .min(1, "Domain is required") + .max(255, "Domain must be 255 characters or fewer") + .regex( + /^(?!:\/\/)([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/, + "Please enter a valid domain (e.g. example.com)" + ), emailTypes: z .array(z.enum(WAITLIST_EMAIL_TYPES)) .min(1, "Select at least one email type"), From d2c2ff5131d688b6c853470c82b1dadac1bc20a6 Mon Sep 17 00:00:00 2001 From: JP Date: Sun, 29 Mar 2026 10:15:05 +0530 Subject: [PATCH 2/2] chore: revert unintended change in marketing page --- apps/marketing/src/app/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/marketing/src/app/page.tsx b/apps/marketing/src/app/page.tsx index 01e42fbf..8d09cea6 100644 --- a/apps/marketing/src/app/page.tsx +++ b/apps/marketing/src/app/page.tsx @@ -324,7 +324,7 @@ function Pricing() { "Send up to 3000 emails per month", "Send up to 100 emails per day", "Can have 1 contact book", - " ", + "Can have 1 domain", "Can have 1 team member", ];