Allow numbers in domain name

This commit is contained in:
Gogs 2016-04-29 10:36:00 +00:00
parent 6530edf887
commit 31566bf459
1 changed files with 1 additions and 1 deletions

View File

@ -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 {}