"""TypeID constants."""

import re

SUFFIX_LENGTH = 26
SUFFIX_PATTERN = r"[01234567][0123456789abcdefghjkmnpqrstvwxyz]{25}"
# note: invalid chars for SUFFIX_PATTERN are: ilou

MAX_TYPE_LENGTH = 6

MAX_DOMAIN_LENGTH = 56

DOMAIN_PATTERN = r"[a-z][a-z0-9.-]{1,55}"
DOMAIN_REGEX = re.compile(r"^" + DOMAIN_PATTERN + r"$")
