mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 02:26:40 +00:00
improve: Folder name input validation text (#2809)
This commit is contained in:
@@ -15,7 +15,10 @@ const formSchema = z.object({
|
|||||||
name: z
|
name: z
|
||||||
.string()
|
.string()
|
||||||
.trim()
|
.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>;
|
type TFormData = z.infer<typeof formSchema>;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user