Skip to content
New issue

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

🐛 [BUG] z.string().emoji() does not throw an error when a number is passed instead of emojis #3

Open
prabincankod opened this issue Mar 24, 2023 · 2 comments

Comments

@prabincankod
Copy link

z.string().emoji() does not throw an error when a number is passed instead of emojis

Description

When using the z.string().emoji() method, it is expected to throw an error if a non-emoji string is passed as an argument. However, it appears that the method does not throw an error when a number is passed instead of emojis.

@t3dotgg
Copy link
Owner

t3dotgg commented Mar 24, 2023

Would be worth raising this with zod, I mentioned it to @joseph-lozano not sure how much can be done though

@prabincankod
Copy link
Author

fixed it 🐛 temporarily #4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants