From 85909778ee494097d08fc31ded93e67cbdda21e9 Mon Sep 17 00:00:00 2001 From: Steffen Date: Tue, 30 Jun 2020 09:58:19 +0200 Subject: [PATCH] dont filter uppercase letters in session channel names (fixes #39) --- package.json | 2 +- src/components/Menu.vue | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 815fe83..a7063bf 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "townsquare", - "version": "1.1.0", + "version": "1.1.1", "description": "Blood on the Clocktower Town Square", "author": "Steffen Baumgart", "scripts": { diff --git a/src/components/Menu.vue b/src/components/Menu.vue index 7e8f6ca..77ed882 100644 --- a/src/components/Menu.vue +++ b/src/components/Menu.vue @@ -193,7 +193,10 @@ export default { this.$store.commit("session/setSpectator", false); this.$store.commit( "session/setSessionId", - sessionId.replace(/[^0-9a-z]/g, "").substr(0, 5) + sessionId + .toLocaleLowerCase() + .replace(/[^0-9a-z]/g, "") + .substr(0, 10) ); this.copySessionUrl(); } @@ -218,7 +221,10 @@ export default { this.$store.commit("session/setSpectator", true); this.$store.commit( "session/setSessionId", - sessionId.replace(/[^0-9a-z]/g, "").substr(0, 5) + sessionId + .toLocaleLowerCase() + .replace(/[^0-9a-z]/g, "") + .substr(0, 10) ); } },