Merge branch 'main' of https://github.com/formbricks/formbricks into fix/license-cache-restored

This commit is contained in:
Piyush Gupta
2024-11-18 17:42:24 +05:30

View File

@@ -26,7 +26,7 @@ export const ZUserName = z
.string()
.trim()
.min(1, { message: "Name should be at least 1 character long" })
.regex(/^[a-zA-Z0-9\s]+$/, { message: "Name should only contain letters, numbers, and spaces" });
.regex(/^[\p{L}\p{M}\s'\d-]+$/u, "Invalid name format");
export type TUserNotificationSettings = z.infer<typeof ZUserNotificationSettings>;