Hopefully fix roblox user input
This commit is contained in:
parent
c5472f587d
commit
fe6065f8f6
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user