diff --git a/src/app/create-brand/page.tsx b/src/app/create-brand/page.tsx index 77e87e8..43b1f48 100644 --- a/src/app/create-brand/page.tsx +++ b/src/app/create-brand/page.tsx @@ -41,8 +41,8 @@ const formSchema = z.object({ .min(2, { message: 'Brand name must be at least 2 characters', }) - .regex(/^[a-zA-Z\s]*$/, { - message: 'Brand name must only contain letters', + .regex(/^[a-zA-Z0-9\s]*$/, { + message: 'Brand name must only contain letters and numbers', }), slogan: z.string().min(2, { message: 'Slogan name must be at least 2 characters', diff --git a/src/app/create-collection/page.tsx b/src/app/create-collection/page.tsx index cbe908c..8e15974 100644 --- a/src/app/create-collection/page.tsx +++ b/src/app/create-collection/page.tsx @@ -39,8 +39,8 @@ const client = new NFTStorage({ token: API_KEY }) const formSchema = z.object({ name: z.string().min(2, { message: 'Collection name must be at least 2 characters', - }).regex(/^[a-zA-Z\s]*$/, { - message: 'Collection name must only contain letters', + }).regex(/^[a-zA-Z0-9\s]*$/, { + message: 'Collection name must only contain letters and numbers', }), description: z .string() diff --git a/src/app/create-phygital/page.tsx b/src/app/create-phygital/page.tsx index 2a5566e..ad5d89f 100644 --- a/src/app/create-phygital/page.tsx +++ b/src/app/create-phygital/page.tsx @@ -32,8 +32,8 @@ const client = new NFTStorage({ token: API_KEY }) const formSchema = z.object({ name: z.string().min(2, { message: 'Phygital name must be at least 2 characters', - }).regex(/^[a-zA-Z\s]*$/, { - message: 'Phygital name must only contain letters', + }).regex(/^[a-zA-Z0-9\s]*$/, { + message: 'Phygital name must only contain letters and numbers', }), category: z .array(z.string()),