forked from mirrors/bookwyrm
Updates domain regex
This commit is contained in:
parent
14a90e805a
commit
a8ae427aeb
1 changed files with 1 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
""" defining regexes for regularly used concepts """
|
||||
|
||||
DOMAIN = r"[\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})?"
|
||||
|
|
Loading…
Reference in a new issue