Gludek - Just to confirm z.string().email() can...
Just to confirm
z.string().email()
can't be combined with .nullish()
right?5 Replies
Unknown User•4mo ago
Message Not Public
Sign In & Join Server To View
yeah, but regex validation of .email makes it so it needs to be defined, and null/undefined input is treated as invalid
![No description](https://cdn.answeroverflow.com/1238931693469958164/image.png)
![No description](https://cdn.answeroverflow.com/1238931693742718996/image.png)
Solution
Unknown User•4mo ago
Message Not Public
Sign In & Join Server To View
okay that works