diff --git a/app/game-api/src/maps/mapLayout.ts b/app/game-api/src/maps/mapLayout.ts index 573ef1b..c33bdda 100644 --- a/app/game-api/src/maps/mapLayout.ts +++ b/app/game-api/src/maps/mapLayout.ts @@ -102,7 +102,7 @@ const parsePhpArray = (input: string): unknown => { const parseNumber = () => { let raw = ''; - while (index < input.length && /[0-9.+\-]/.test(input[index] ?? '')) { + while (index < input.length && /[0-9.+-]/.test(input[index] ?? '')) { raw += input[index]; index += 1; } @@ -121,7 +121,7 @@ const parsePhpArray = (input: string): unknown => { if (char === '"' || char === "'") { return parseString(); } - if (/[0-9.+\-]/.test(char)) { + if (/[0-9.+-]/.test(char)) { return parseNumber(); } if (input.startsWith('true', index)) { diff --git a/app/game-frontend/src/views/MainView.vue b/app/game-frontend/src/views/MainView.vue index 57a5eab..f270513 100644 --- a/app/game-frontend/src/views/MainView.vue +++ b/app/game-frontend/src/views/MainView.vue @@ -123,7 +123,7 @@ watch( -