You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IPv6 validation fails when the last two parts of the IPv6 are compressed, both when one or both are omitted. It does not happen if it is any other part. I have checked the regex you use in
I can confirm this issue. In my logs I found that z.string().ip().safeParse('2a00:116a:105:2e70::') results in "Invalid ip", although being perfectly fine. Thank you for reporting it and proposing a fix!
IPv6 validation fails when the last two parts of the IPv6 are compressed, both when one or both are omitted. It does not happen if it is any other part. I have checked the regex you use in
zod/src/types.ts
Line 613 in 1247caf
The text was updated successfully, but these errors were encountered: