From 694ccc14a4fbe0c02a00e2c3ebc1734691ad9aa9 Mon Sep 17 00:00:00 2001 From: 0880 <98263509+0880880@users.noreply.github.com> Date: Wed, 21 Jan 2026 02:12:39 +0330 Subject: [PATCH] Fix variable name mistake couldn't join --- home.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home.html b/home.html index d7e30c0..7c140dc 100644 --- a/home.html +++ b/home.html @@ -154,7 +154,7 @@ const code = document.getElementById("code"); const pat = new RegExp("^[a-z0-9]{4}$") document.getElementById("join").addEventListener("click", () => { - if (!reg.test(code.value)) { + if (!pat.test(code.value)) { alert("Invalid ID"); } else { window.location.href = window.location.origin + "/" + code.value;