chore: reverse support for localhost domain

This commit is contained in:
Dustin Steiner 2023-01-27 15:45:43 +00:00
parent 07f4300176
commit 3d29524e29
No known key found for this signature in database
GPG key ID: 918D51522D8CB8F2

View file

@ -1,6 +1,6 @@
""" defining regexes for regularly used concepts """
DOMAIN = r"(?:localhost:[0-9]{4,}|[\w_\-\.]+\.[a-z\-]{2,})"
DOMAIN = r"[\w_\-\.]+\.[a-z\-]{2,}"
LOCALNAME = r"@?[a-zA-Z_\-\.0-9]+"
STRICT_LOCALNAME = r"@[a-zA-Z_\-\.0-9]+"
USERNAME = rf"{LOCALNAME}(@{DOMAIN})?"