Zod, Non numeric string

How can i with zod enforce something to be a string and make sure it doesnt contain any numbers
2 Replies
charif
charif4mo ago
maybe z.string().regex(regex)
upio
upio4mo ago
i think its this right: z.string().regex(/[^0-9]/)
Want results from more Discord servers?
Add your server