Skip to content

Commit

Permalink
chore: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
LatentDream committed Apr 22, 2024
1 parent 223f7d7 commit aa451f6
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,14 @@ import {
} from "@/renderer/components/ui/form";

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

0 comments on commit aa451f6

Please sign in to comment.