From 2592ed7b461fea3b44711840db7035e36b32acf0 Mon Sep 17 00:00:00 2001 From: Edi Septriyanto Date: Tue, 31 Aug 2021 17:24:49 +0700 Subject: [PATCH] Fix issue #101 --- scripts/helper.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/helper.sh b/scripts/helper.sh index 2892521..1e44798 100644 --- a/scripts/helper.sh +++ b/scripts/helper.sh @@ -288,7 +288,7 @@ function validate_nginx_config() { function validate_fqdn() { local FQDN=${1} - if grep -qP '(?=^.{1,254}$)(^(?>(?!\d+\.)[a-zA-Z0-9_\-]{1,63}\.?)+(?:[a-zA-Z]{2,})$)' <<< "${FQDN}"; then + if grep -qP "(?=^.{4,253}\.?$)(^((?!-)[a-zA-Z0-9-]{1,63}(?