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

Fixed domain regexp.

parent 25f9e084
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,7 @@ class SetAppDomain():
by using this format: ms-<instance name> (for example ms-msuser).
domain: The new domain.''' % __file__
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]+'
def __init__(self, *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