Skip to content

Commit

Permalink
Add discord username regex
Browse files Browse the repository at this point in the history
  • Loading branch information
Lekuruu committed Dec 23, 2023
1 parent f4ef8e5 commit ac88780
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions constants/regexes.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,7 @@
USERNAME = re.compile(
r'^[a-zA-Z0-9|^\-{}_|\[\] ]+$'
)

DISCORD_USERNAME = re.compile(
r'^[a-z0-9_-]{3,15}$'
)

0 comments on commit ac88780

Please sign in to comment.