Some fixes and styling changes
This commit is contained in:
parent
cacea24aa6
commit
3125d60c11
4 changed files with 41 additions and 22 deletions
|
@ -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("/")
|
||||
}
|
||||
|
|
Reference in a new issue