From c66bd6d2eefe7ece09c171e1795927b75a560610 Mon Sep 17 00:00:00 2001 From: MDMCK10 <21245760+MDMCK10@users.noreply.github.com> Date: Sat, 6 May 2023 16:50:25 +0200 Subject: [PATCH] We don't need that to be there anymore --- src/WSServer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/WSServer.ts b/src/WSServer.ts index ca7fdb8..5aec822 100644 --- a/src/WSServer.ts +++ b/src/WSServer.ts @@ -539,7 +539,7 @@ export default class WSServer { status = "1"; } } else - if (!/^[a-zA-Z0-9\ \-\_\.]+$/.test(newName) || newName.length > 20 || newName.trim().length < 3) { + if (!/^[a-zA-Z0-9\ \-\_\.]+$/.test(newName) || newName.length > 20 || newName.length < 3) { client.assignGuestName(this.getUsernameList()); status = "2"; } else