dont filter uppercase letters in session channel names (fixes #39)

This commit is contained in:
Steffen 2020-06-30 09:58:19 +02:00
parent 6509ee3364
commit 85909778ee
No known key found for this signature in database
GPG Key ID: 764D74E98267DFC6
2 changed files with 9 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "townsquare", "name": "townsquare",
"version": "1.1.0", "version": "1.1.1",
"description": "Blood on the Clocktower Town Square", "description": "Blood on the Clocktower Town Square",
"author": "Steffen Baumgart", "author": "Steffen Baumgart",
"scripts": { "scripts": {

View File

@ -193,7 +193,10 @@ export default {
this.$store.commit("session/setSpectator", false); this.$store.commit("session/setSpectator", false);
this.$store.commit( this.$store.commit(
"session/setSessionId", "session/setSessionId",
sessionId.replace(/[^0-9a-z]/g, "").substr(0, 5) sessionId
.toLocaleLowerCase()
.replace(/[^0-9a-z]/g, "")
.substr(0, 10)
); );
this.copySessionUrl(); this.copySessionUrl();
} }
@ -218,7 +221,10 @@ export default {
this.$store.commit("session/setSpectator", true); this.$store.commit("session/setSpectator", true);
this.$store.commit( this.$store.commit(
"session/setSessionId", "session/setSessionId",
sessionId.replace(/[^0-9a-z]/g, "").substr(0, 5) sessionId
.toLocaleLowerCase()
.replace(/[^0-9a-z]/g, "")
.substr(0, 10)
); );
} }
}, },