The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Update discount.ts
Kiran Kf472f8f9b14d
diff --git a/apps/web/lib/zod/schemas/discount.ts b/apps/web/lib/zod/schemas/discount.tsindex cb0797ca2b..e291a67035 100644--- a/apps/web/lib/zod/schemas/discount.ts+++ b/apps/web/lib/zod/schemas/discount.ts@@ -74,7 +74,7 @@ export const createDiscountCodeSchema = z.object({code: z.string().trim()- .max(100, "Code must be less than 100 characters.")+ .max(100, "Code must be 100 characters or fewer.").regex(/^[a-zA-Z0-9\-_]+$/,"Code can only contain letters, numbers, dashes, and underscores.",