Merge "Changing domain name regexp" into release-0.1
This commit is contained in:
commit
dfa72b0b8e
|
@ -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