mirror of
https://github.com/formbricks/formbricks.git
synced 2026-04-17 19:14:53 -05:00
fix: name regex (#4328)
This commit is contained in:
committed by
GitHub
parent
43b1cb904d
commit
7f8549124f
@@ -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>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user