We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug Attempting to use custom validator for validating a phone number is in e.164 format
phoneNumber String? /// @zod.custom.use(z.string().regex(/^\+[1-9]\d{1,14}$/));
this pattern is breaking the generation of the zod regex check:
phoneNumber: z.string(.nullable(),
expected output:
z.string().regex(/^\+[1-9]\d{1,14}$/)).nullable()
Package versions (please complete the following information):
seems to be related to the escaped characters + and \d
The text was updated successfully, but these errors were encountered:
@timfenton-dermi Thanks for pointing this out. I'll look into it
Sorry, something went wrong.
chrishoermann
No branches or pull requests
Describe the bug
Attempting to use custom validator for validating a phone number is in e.164 format
this pattern is breaking the generation of the zod regex check:
expected output:
Package versions (please complete the following information):
seems to be related to the escaped characters + and \d
The text was updated successfully, but these errors were encountered: