Allow spaces in deck names
This commit is contained in:
parent
b397c08268
commit
7e92d05433
@ -58,11 +58,11 @@ const server = http.createServer((req, res) => {
|
|||||||
break;
|
break;
|
||||||
case 'deck':
|
case 'deck':
|
||||||
if (pathParts.length === 3) {
|
if (pathParts.length === 3) {
|
||||||
let deckName = pathParts[2];
|
let deckName = decodeURI(pathParts[2]);
|
||||||
sendDeckIndex(res, deckName);
|
sendDeckIndex(res, deckName);
|
||||||
}
|
}
|
||||||
else if (pathParts.length === 4) {
|
else if (pathParts.length === 4) {
|
||||||
let deckName = pathParts[2];
|
let deckName = decodeURI(pathParts[2]);
|
||||||
switch (pathParts[3]) {
|
switch (pathParts[3]) {
|
||||||
case 'play':
|
case 'play':
|
||||||
sendPlayfield(res, deckName);
|
sendPlayfield(res, deckName);
|
||||||
|
Loading…
Reference in New Issue
Block a user