diff --git a/tiramisu/option/domainnameoption.py b/tiramisu/option/domainnameoption.py index 021442e..a6924ff 100644 --- a/tiramisu/option/domainnameoption.py +++ b/tiramisu/option/domainnameoption.py @@ -74,12 +74,10 @@ class DomainnameOption(StrOption): else: min_time = 1 regexp = r'((?!-)[a-z0-9-]{{{1},{0}}}\.){{{1},}}[a-z0-9-]{{1,{0}}}'.format(self._get_len(type), min_time) - msg = _('only lowercase, number, "-" and "." characters are allowed') - msg_warning = _('only lowercase, number, "-" and "." characters are recommanded') else: regexp = r'((?!-)[a-z0-9-]{{1,{0}}})'.format(self._get_len(type)) - msg = _('only lowercase, number and "-" characters are allowed') - msg_warning = _('only lowercase, number and "-" characters are recommanded') + msg = _('must start with lowercase characters followed by lowercase characters, number, "-" and "." characters are allowed') + msg_warning = _('must start with lowercase characters followed by lowercase characters, number, "-" and "." characters are recommanded') if allow_ip: msg = _('could be a IP, otherwise {}').format(msg) msg_warning = _('could be a IP, otherwise {}').format(msg_warning)