Merge pull request #357 from Dokploy/353-domain-binding-form-does-not-accept-russian-domains-and-punycode-domains

refactor: remove hostname regex
This commit is contained in:
Mauricio Siu
2024-08-17 00:41:53 -06:00
committed by GitHub

View File

@@ -38,9 +38,7 @@ export const sshKeyType = z.object({
export const domain = z
.object({
host: z.string().regex(/^[a-zA-Z0-9][a-zA-Z0-9\.-]*\.[a-zA-Z]{2,}$/, {
message: "Invalid hostname",
}),
host: z.string().min(1, { message: "Add a hostname" }),
path: z.string().min(1).optional(),
port: z
.number()