diff options
| author | Shawn <shawn@qwil.io> | 2021-09-17 23:48:53 +0100 |
|---|---|---|
| committer | Shawn <shawn@qwil.io> | 2021-09-17 23:48:53 +0100 |
| commit | a30c9f94f6ca1b61294113ba25b0a539f913f697 (patch) | |
| tree | e7739ba6cebd3f9a2eccce917e3e86ce83ac78dc | |
| parent | 12a3d2c5c3ad42b8b236117f9a767824d832cc3a (diff) | |
allow dashes and dots in room name
| -rw-r--r-- | index.html | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); }); |
