Hopefully fix roblox user input
This commit is contained in:
@ -301,7 +301,8 @@ export default function () {
|
||||
if (
|
||||
data.match(/\W/) ||
|
||||
data.length > 20 ||
|
||||
(data.match(/_/g)?.length || 0) > 1 ||
|
||||
// Need Number pseudo-constructor since matches might be null
|
||||
Number(data.match(/_/g)?.length) > 1 ||
|
||||
data.startsWith("_")
|
||||
)
|
||||
e.preventDefault();
|
||||
|
Reference in New Issue
Block a user