reflect the specified regex correctly in error (#5338)

This commit is contained in:
Tietew
2025-10-15 09:14:10 -07:00
committed by GitHub
parent b674dc8d1a
commit 1c91b3243b
+1 -1
View File
@@ -489,7 +489,7 @@ export const $ZodURL: core.$constructor<$ZodURL> = /*@__PURE__*/ core.$construct
code: "invalid_format",
format: "url",
note: "Invalid hostname",
pattern: regexes.hostname.source,
pattern: def.hostname.source,
input: payload.value,
inst,
continue: !def.abort,