diff --git a/package.json b/package.json index dca231f..01f9533 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pojazdownik", - "version": "1.8.5", + "version": "1.8.6", "private": true, "type": "module", "scripts": { diff --git a/src/mixins/stockMixin.ts b/src/mixins/stockMixin.ts index 53e850d..0d74582 100644 --- a/src/mixins/stockMixin.ts +++ b/src/mixins/stockMixin.ts @@ -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(','); diff --git a/vite.config.ts b/vite.config.ts index b73537e..addfebb 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -34,7 +34,7 @@ export default defineConfig({ maxAgeSeconds: 60 * 60 * 24, // <== 1 day }, cacheableResponse: { - statuses: [0, 200, 404], + statuses: [200], }, }, },