Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

improve: Folder name input validation text (#2809)

McPizzaf55bcb93ba6f
diff --git a/frontend/src/views/SecretMainPage/components/ActionBar/FolderForm.tsx b/frontend/src/views/SecretMainPage/components/ActionBar/FolderForm.tsx
index a116855d89..bad6376c87 100644
--- a/frontend/src/views/SecretMainPage/components/ActionBar/FolderForm.tsx
+++ b/frontend/src/views/SecretMainPage/components/ActionBar/FolderForm.tsx
@@ -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>;