mirror of
https://github.com/Spythere/pojazdownik.git
synced 2026-05-03 11:45:34 +00:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 76670ceb29 | |||
| 4cdd8ea06a | |||
| 454ae138f7 | |||
| 640c5e262b | |||
| 7416d7d59f |
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "pojazdownik",
|
||||
"version": "1.8.5",
|
||||
"version": "1.8.6",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
|
||||
@@ -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
@@ -34,7 +34,7 @@ export default defineConfig({
|
||||
maxAgeSeconds: 60 * 60 * 24, // <== 1 day
|
||||
},
|
||||
cacheableResponse: {
|
||||
statuses: [0, 200, 404],
|
||||
statuses: [200],
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user