Merge pull request #27 from Spythere/development

1.8.6
This commit is contained in:
Spythere
2024-05-13 16:12:46 +02:00
committed by GitHub
3 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "pojazdownik",
"version": "1.8.5",
"version": "1.8.6",
"private": true,
"type": "module",
"scripts": {
+3 -1
View File
@@ -67,7 +67,9 @@ export default defineComponent({
let vehicle: IVehicle | null = null;
let vehicleCargo: ICargo | null = null;
const isTractionUnit = /^(EU|EP|ET|SM|EN|2EN|SN)/.test(type);
const isTractionUnit = /^([a-zA-Z\d]{0,}-\d{0,})/.test(type);
console.log(type, isTractionUnit);
if (isTractionUnit) {
const [locoType, spawnProps] = type.split(',');
+1 -1
View File
@@ -34,7 +34,7 @@ export default defineConfig({
maxAgeSeconds: 60 * 60 * 24, // <== 1 day
},
cacheableResponse: {
statuses: [0, 200, 404],
statuses: [200],
},
},
},