zod to check if string is only whitespaces
how do i use zod to check if a string is only whitespaces?
/\A\s*\z/const inputSchema = z.object({
message: z
.string()
.min(1, { message: "Your message is empty!" })
.max(100, { message: "Your message must be less than 100 characters." }),
});