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",
"version": "1.1.0",
"version": "1.1.1",
"description": "Blood on the Clocktower Town Square",
"author": "Steffen Baumgart",
"scripts": {

View File

@ -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)
);
}
},