Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prod #18

Merged
merged 2 commits into from
Oct 30, 2024
Merged

Prod #18

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/app/create-brand/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
4 changes: 2 additions & 2 deletions src/app/create-collection/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
4 changes: 2 additions & 2 deletions src/app/create-phygital/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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()),
Expand Down
Loading