From e0b3db233b1412b14393c2f3c76ace83aa954889 Mon Sep 17 00:00:00 2001 From: meltland Date: Sat, 22 Mar 2025 13:58:57 -0400 Subject: allow period in usernames --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index dfb975f..4998c16 100644 --- a/main.py +++ b/main.py @@ -170,7 +170,7 @@ async def handler(websocket): continue r["username"] = r["username"].lower() r["invite_code"] = r["invite_code"].upper() - if not re.fullmatch("[a-z0-9-_]{1,20}", r["username"]): + if not re.fullmatch("[a-z0-9-_.]{1,20}", r["username"]): await websocket.send(util.error("invalidUsername", listener)) continue if r["invite_code"] not in invite_codes: -- cgit 1.4.1-2-gfad0