Some fixes and styling changes

This commit is contained in:
Henry Hiles 2022-03-03 09:33:43 -05:00
parent cacea24aa6
commit 3125d60c11
4 changed files with 41 additions and 22 deletions

View file

@ -34,7 +34,8 @@ app.post("/", (req, res) => {
if (
!req.body.room.trim() ||
!/^[-a-z0-9]+$/i.test(req.body.room) ||
rooms[req.body.room]
rooms[req.body.room] ||
req.body.room.length > 10
) {
return res.redirect("/")
}