Skip to content

Commit

Permalink
chore: add a helpful msg
Browse files Browse the repository at this point in the history
  • Loading branch information
itsjoeoui committed Apr 22, 2024
1 parent 2f98f6b commit 4832f1e
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,13 @@ import {
} from "@/renderer/components/ui/form";

const formSchema = z.object({
name: z.string().min(1).max(50).regex(/\S/),
name: z.string().min(1).max(50).regex(/\S/, {
message: "The sequence name should not contain white spaces",
}),
description: z.string().max(100),
projectPath: z.string().min(1).regex(/\S/),
projectPath: z.string().min(1).regex(/\S/, {
message: "The project path should not contain white spaces",
}),
});

export const CreateSequenceModal = () => {
Expand Down

0 comments on commit 4832f1e

Please sign in to comment.