From a30c9f94f6ca1b61294113ba25b0a539f913f697 Mon Sep 17 00:00:00 2001 From: Shawn Date: Fri, 17 Sep 2021 23:48:53 +0100 Subject: allow dashes and dots in room name --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'index.html') diff --git a/index.html b/index.html index 6f0d102..0c12ca1 100644 --- a/index.html +++ b/index.html @@ -35,7 +35,7 @@ $('#roomName') .val(DEFAULT_ROOM_NAME) .on("input", function () { - let value = this.value.replace(/\W/g, ''); // sanitize + let value = this.value.replace(/[^0-9a-z_.\-]/gi, ''); // sanitize this.value = value; generator.updateRoomName(value); }); -- cgit v1.2.3