From b91b30ccf7e68536ceb352b32733e7426172c65c Mon Sep 17 00:00:00 2001 From: teohz Date: Mon, 2 Sep 2024 15:25:42 +0100 Subject: [PATCH] fix: changing top domain character length check from 6 to 18 characters - as seems to be the currently longest top domain name --- wgwadmlibrary/tools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wgwadmlibrary/tools.py b/wgwadmlibrary/tools.py index 1f1f50c..6c3dc8d 100644 --- a/wgwadmlibrary/tools.py +++ b/wgwadmlibrary/tools.py @@ -11,7 +11,7 @@ def is_valid_ip_or_hostname(value): pass # Regex to check valid hostname (RFC 1123) - hostname_regex = r'^((?!-)[A-Za-z0-9-]{1,63}(?