Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Hopefully fix roblox user input
  • Loading branch information
regalijan committed Mar 2, 2024
1 parent c5472f5 commit fe6065f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/routes/et-members.tsx
Expand Up @@ -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();
Expand Down

0 comments on commit fe6065f

Please sign in to comment.