mirror of
https://github.com/hanzoai/zod.git
synced 2026-09-24 17:04:49 +00:00
reflect the specified regex correctly in error (#5338)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user