Now fix the server side check lol

This commit is contained in:
Regalijan 2024-02-28 00:05:13 -05:00
parent f9d080a03d
commit 02f15ea736
Signed by: regalijan
GPG Key ID: 5D4196DA269EF520

View File

@ -58,7 +58,7 @@ export async function onRequestPost(context: RequestContext) {
if (
roblox_username.length < 3 ||
roblox_username.length > 20 ||
roblox_username.match(/\D/) ||
roblox_username.match(/\W/) ||
roblox_username.match(/_/g)?.length > 1
)
return jsonError("Username is invalid", 400);