From 31566bf4595846db226b73cb24f7629baf2824fb Mon Sep 17 00:00:00 2001 From: Gogs Date: Fri, 29 Apr 2016 10:36:00 +0000 Subject: [PATCH] Allow numbers in domain name --- bifrost/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bifrost/views.py b/bifrost/views.py index 882ba83..0b5ad9c 100644 --- a/bifrost/views.py +++ b/bifrost/views.py @@ -40,7 +40,7 @@ def update_view(request): def load(file): - exp = re.compile(r"^([a-z.]+):([0-9]{1,3}(?:\.[0-9]{1,3}){3})$", re.I) + exp = re.compile(r"^([a-z1-9.]+):([0-9]{1,3}(?:\.[0-9]{1,3}){3})$", re.I) if not os.path.isfile(file): return {}