Skip to content

Commit

Permalink
chore: add default(false) for disallowHostnames
Browse files Browse the repository at this point in the history
Co-authored-by: Eugene Lim <limzhiweieugene@gmail.com>
  • Loading branch information
zhongliang02 and spaceraccoon authored Jan 15, 2025
1 parent b9a38e8 commit 6624d79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/validators/src/url/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const whitelistSchema = z.object({
*
* @defaultValue false
*/
disallowHostnames: z.boolean().optional(),
disallowHostnames: z.boolean().optional().default(false),
/**
* Which characters are allowed in the URL path.
* Use empty string to allow all characters.
Expand Down

0 comments on commit 6624d79

Please # to comment.