t3dotgg / chirp

https://xn--uo8h.t3.gg/
393 stars 61 forks source link

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

Open prabincankod opened 1 year ago

prabincankod commented 1 year ago

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 commented 1 year ago

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

prabincankod commented 1 year ago

fixed it 🐛 temporarily #4