From e7fc7969b1470f364a12955e5bc972986d7f6275 Mon Sep 17 00:00:00 2001 From: proddy Date: Mon, 4 Jan 2021 10:43:10 +0100 Subject: [PATCH] extended length of IP/hostnames from 32 to 48 chars #676 --- interface/src/validators/isHostname.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interface/src/validators/isHostname.ts b/interface/src/validators/isHostname.ts index 7c1ca253..a9cb3fa5 100644 --- a/interface/src/validators/isHostname.ts +++ b/interface/src/validators/isHostname.ts @@ -1,4 +1,4 @@ -const hostnameLengthRegex = /^.{0,32}$/ +const hostnameLengthRegex = /^.{0,48}$/ const hostnamePatternRegex = /^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9-]*[A-Za-z0-9])$/ export default function isHostname(hostname: string) {