summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--index.html2
1 files changed, 1 insertions, 1 deletions
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);
});