dash in hostname is not an edge case

pull/1/head
eric 2014-11-13 10:19:53 -05:00
parent c5adedd1ff
commit 3a465cf074
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@ class EditionForm(forms.ModelForm):
http = forms.RegexField(
label=_("HTTP URL"),
# https://mathiasbynens.be/demo/url-regex
regex=re.compile(r"(https?|ftp)://(-\.)?([^\s/?\.#-]+\.?)+(/[^\s]*)?$",
regex=re.compile(r"(https?|ftp)://(-\.)?([^\s/?\.#]+\.?)+(/[^\s]*)?$",
flags=re.IGNORECASE|re.S ),
required = False,
help_text = _("no spaces of funny stuff."),