From 65c534b8f07df44ea32a7a4a9014dac1cd7188fc Mon Sep 17 00:00:00 2001 From: IgorTimofeev Date: Sun, 20 Dec 2020 10:46:16 +0300 Subject: [PATCH] Name vailidation fix --- Installer/Main.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Installer/Main.lua b/Installer/Main.lua index bd05f504..791d8ff6 100644 --- a/Installer/Main.lua +++ b/Installer/Main.lua @@ -334,7 +334,7 @@ end local function checkUserInputs() local nameEmpty = #usernameInput.text == 0 - local nameVaild = usernameInput.text:match("^[%w%s_]+$") + local nameVaild = usernameInput.text:match("^%w[%w%s_]+$") local passValid = passwordSwitchAndLabel.switch.state or #passwordInput.text == 0 or #passwordSubmitInput.text == 0 or passwordInput.text == passwordSubmitInput.text if (nameEmpty or nameVaild) and passValid then