diff options
author | meltland <[email protected]> | 2025-03-22 13:58:57 -0400 |
---|---|---|
committer | meltland <[email protected]> | 2025-03-22 13:58:57 -0400 |
commit | e0b3db233b1412b14393c2f3c76ace83aa954889 (patch) | |
tree | 1d2206a312b3240ba5e0e18461d3b7f889f48da8 | |
parent | 415c351e6ae2c1ada1b95b57f9ff5ee78ea5cad6 (diff) |
allow period in usernames
-rw-r--r-- | main.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |