Allow new Roblox reset username format

This commit is contained in:
2026-02-15 00:36:24 -05:00
parent 81b845c9d1
commit 25c9049563

View File

@@ -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(/roblox_user_\d+/)) || // New reset username format, the only exception to the underscore rule
username.match(/\W/)
)
return jsonError(`Username "${username}" is invalid`, 400);