improve: Folder name input validation text (#2809)

This commit is contained in:
McPizza
2024-11-27 19:55:46 +01:00
committed by GitHub
parent d3fb2a6a74
commit f55bcb93ba

View File

@ -15,7 +15,10 @@ const formSchema = z.object({
name: z
.string()
.trim()
.regex(/^[a-zA-Z0-9-_]+$/, "Folder name cannot contain spaces. Only underscore and dashes")
.regex(
/^[a-zA-Z0-9-_]+$/,
"Folder name can only contain letters, numbers, dashes, and underscores"
)
});
type TFormData = z.infer<typeof formSchema>;