Skip to content
Snippets Groups Projects
Commit bf6dc72c authored by Stéphane Diemer's avatar Stéphane Diemer
Browse files

Accept domains without extension in set_app_domain

parent 7d91e053
No related branches found
No related tags found
No related merge requests found
...@@ -24,7 +24,7 @@ class SetAppDomain(): ...@@ -24,7 +24,7 @@ class SetAppDomain():
by using this format: ms-<instance name> (for example ms-msuser). by using this format: ms-<instance name> (for example ms-msuser).
domain: The new domain.''' % __file__ domain: The new domain.''' % __file__
UNIX_USER_PATTERN = r'[a-z0-9\-]+' UNIX_USER_PATTERN = r'[a-z0-9\-]+'
DOMAIN_PATTERN = r'([a-z0-9\-]+\.)*[a-z0-9\-]+\.[a-z]+' DOMAIN_PATTERN = r'([a-z0-9\-]+\.)*[a-z0-9\-]+(\.[a-z]+){0,1}'
def __init__(self, *args): def __init__(self, *args):
args = list(args) args = list(args)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment