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) {