The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
disallow slashes in domain input for add project modal and edit domain modal
Steven Tey3826577ac872
diff --git a/components/app/modals/add-project-modal.tsx b/components/app/modals/add-project-modal.tsxindex c1d579e0b6..be54971a59 100644--- a/components/app/modals/add-project-modal.tsx+++ b/components/app/modals/add-project-modal.tsx@@ -206,6 +206,7 @@ function AddProjectModalHelper({id="domain"type="text"required+ pattern="[a-zA-Z0-9\-.]+"className={`${domainError? "border-red-300 text-red-900 placeholder-red-300 focus:border-red-500 focus:ring-red-500"diff --git a/components/app/modals/edit-domain-modal.tsx b/components/app/modals/edit-domain-modal.tsxindex 204ca57b0b..5aa63ccd7d 100644--- a/components/app/modals/edit-domain-modal.tsx+++ b/components/app/modals/edit-domain-modal.tsx@@ -125,6 +125,7 @@ function EditDomainModal({name="new-domain"id="new-domain"required+ pattern="[a-zA-Z0-9\-.]+"autoFocus={false}className={`${domainError