Changing domain name regexp
Change-Id: If6c7a24891690b8906e4129f12b581fded91599a
This commit is contained in:
parent
3bfc61376b
commit
4eab955bb6
|
@ -76,7 +76,7 @@ class CommonPropertiesExtension(object):
|
|||
|
||||
class WizardFormADConfiguration(forms.Form, CommonPropertiesExtension):
|
||||
domain_name_re = re.compile(
|
||||
r'^[a-zA-Z0-9][a-zA-Z0-9-]{1,61}[a-zA-Z0-9](\.[a-zA-Z]{2,})?$')
|
||||
r'^[a-zA-Z0-9][a-zA-Z0-9.-]+[a-zA-Z0-9]$')
|
||||
validate_domain_name = RegexValidator(domain_name_re,
|
||||
_(u'Enter a valid domain name: \
|
||||
just letters, numbers, dashes and \
|
||||
|
|
Loading…
Reference in New Issue