diff --git a/functions/api/reports/submit.ts b/functions/api/reports/submit.ts index 04dbdad..64701c5 100644 --- a/functions/api/reports/submit.ts +++ b/functions/api/reports/submit.ts @@ -78,7 +78,8 @@ export async function onRequestPost(context: RequestContext) { if ( username.length < 3 || username.length > 20 || - username.match(/_/g)?.length > 1 + username.match(/_/g)?.length > 1 || + username.match(/\W/) ) return jsonError(`Username "${username}" is invalid`, 400); }