chirp icon indicating copy to clipboard operation
chirp copied to clipboard

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

Open prabincankod opened this issue 1 year ago • 2 comments

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.

prabincankod avatar Mar 24 '23 02:03 prabincankod

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

t3dotgg avatar Mar 24 '23 04:03 t3dotgg

fixed it 🐛 temporarily #4

prabincankod avatar Mar 24 '23 04:03 prabincankod