brakujące tłumaczenia; poprawki

This commit is contained in:
2024-02-12 14:58:59 +01:00
parent 3ac8d60c5c
commit 755c729a9b
3 changed files with 8 additions and 7 deletions
-4
View File
@@ -99,8 +99,6 @@ export const useMainStore = defineStore('store', {
if (!apiStore.activeData?.activeSceneries) return [];
console.time('d');
const offlineActiveSceneries = this.trainList.reduce((acc, train) => {
if (!train.timetableData) return acc;
@@ -223,8 +221,6 @@ export const useMainStore = defineStore('store', {
};
}
console.timeEnd('d');
return allActiveSceneries;
},
+2 -2
View File
@@ -110,7 +110,7 @@ export function getCheckpointTrain(
for (let i = trainStopIndex; i >= 0; i--) {
const stop = followingStops[i];
if (/strong|podg/g.test(stop.stopName) && !prevStationName && i <= trainStopIndex - 1)
if (/strong|podg\.|pe\./g.test(stop.stopName) && !prevStationName && i <= trainStopIndex - 1)
prevStationName = stop.stopNameRAW.replace(/,.*/g, '');
if (stop.arrivalLine != null && !arrivingLine && !/-|_|it|sbl/gi.test(stop.arrivalLine)) {
@@ -122,7 +122,7 @@ export function getCheckpointTrain(
for (let i = trainStopIndex; i < followingStops.length; i++) {
const stop = followingStops[i];
if (/strong|podg/g.test(stop.stopName) && !nextStationName && i > trainStopIndex)
if (/strong|podg\.|pe\./g.test(stop.stopName) && !nextStationName && i > trainStopIndex)
nextStationName = stop.stopNameRAW.replace(/,.*/g, '');
if (stop.departureLine && !departureLine && !/-|_|it|sbl/gi.test(stop.departureLine)) {