Merge "Changing domain name regexp" into release-0.1

This commit is contained in:
Jenkins 2013-06-13 07:34:17 +00:00 committed by Gerrit Code Review
commit dfa72b0b8e
1 changed files with 1 additions and 1 deletions

View File

@ -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 \