fix: remove restrictive validation for group names

This commit is contained in:
Elias Schneider
2025-01-13 12:38:02 +01:00
parent 888557171d
commit be6e25a167
3 changed files with 4 additions and 19 deletions

View File

@@ -22,12 +22,11 @@
};
const formSchema = z.object({
friendlyName: z.string().min(2).max(30),
friendlyName: z.string().min(2).max(50),
name: z
.string()
.min(2)
.max(30)
.regex(/^[a-z0-9_]+$/, 'Name can only contain lowercase letters, numbers, and underscores')
.max(255)
});
type FormSchema = typeof formSchema;