Lines 1883-1889
class dnsHostname(dnsName):
|
Link Here
|
---|
|
1883 |
valueError: A host name or FQDN must start and end with a letter or number. In between additionally dashes, dots and underscores are allowed. |
1883 |
valueError: A host name or FQDN must start and end with a letter or number. In between additionally dashes, dots and underscores are allowed. |
1884 |
""" |
1884 |
""" |
1885 |
|
1885 |
|
1886 |
LABEL = re.compile(r'^(?![0-9]+$|[_-])[a-zA-Z0-9_-]{1,63}(?<![_-])$') |
1886 |
LABEL = re.compile(r'^[a-zA-Z0-9][a-zA-Z0-9_-]{0,63}(?<![_-])$') |
1887 |
NUMERIC = re.compile(r'^[0-9.]+$') |
1887 |
NUMERIC = re.compile(r'^[0-9.]+$') |
1888 |
|
1888 |
|
1889 |
@classmethod |
1889 |
@classmethod |
Lines 1922-1928
class dnsName_umlauts(simple):
|
Link Here
|
---|
|
1922 |
|
1922 |
|
1923 |
min_length = 1 |
1923 |
min_length = 1 |
1924 |
max_length = 63 |
1924 |
max_length = 63 |
1925 |
regex = re.compile(r"^(?![0-9]+$|[_-])[\w_-]{1,63}(?<![_-])$", re.UNICODE) |
1925 |
regex = re.compile(r"^[\w][\w_-]{0,63}(?<![_-])$", re.UNICODE) |
1926 |
error_message = _( |
1926 |
error_message = _( |
1927 |
"A host name or FQDN must start and end with a letter or number. In between additionally dashes, dots " |
1927 |
"A host name or FQDN must start and end with a letter or number. In between additionally dashes, dots " |
1928 |
"and underscores are allowed." |
1928 |
"and underscores are allowed." |