From 1d8d9174c7d58dd8afc95785a30ed7bceabc9ce2 Mon Sep 17 00:00:00 2001 From: AlecM33 Date: Thu, 31 Mar 2022 11:23:08 -0400 Subject: [PATCH] fix front-end validation --- client/src/scripts/home.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/scripts/home.js b/client/src/scripts/home.js index bddc7d7..6bc1cfa 100644 --- a/client/src/scripts/home.js +++ b/client/src/scripts/home.js @@ -16,7 +16,7 @@ const home = () => { }; function roomCodeIsValid (code) { - return typeof code === 'string' && /^[A-Z0-9]{6}$/.test(code.toUpperCase().trim()); + return typeof code === 'string' && /^[A-Z0-9]{4}$/.test(code.toUpperCase().trim()); } function attemptToJoinGame (code) {