fix front-end validation

This commit is contained in:
AlecM33
2022-03-31 11:23:08 -04:00
parent b2fb390c95
commit 1d8d9174c7

View File

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