mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 13:28:11 +00:00
fix: omitting "po" stops in timetable progress bar
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<span
|
||||
class="stop-label"
|
||||
:data-minor="stop.isSBL || (stop.nameRaw.endsWith(', po.') && !stop.duration)"
|
||||
:data-minor="stop.isSBL || (stop.nameRaw.endsWith(', po') && !stop.duration)"
|
||||
>
|
||||
<router-link :to="`/scenery?station=${stop.sceneryName}`" @click="closeModal">
|
||||
<span class="name" v-html="stop.nameHtml"></span>
|
||||
|
||||
@@ -249,7 +249,7 @@ export default defineComponent({
|
||||
i < this.train.timetableData!.followingStops.length;
|
||||
i++
|
||||
) {
|
||||
if (/po\.|sbl/gi.test(this.train.timetableData!.followingStops[i].stopNameRAW))
|
||||
if (/(, po|sbl|, pe)/gi.test(this.train.timetableData!.followingStops[i].stopNameRAW))
|
||||
activeMinorStopList.push(i);
|
||||
else break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user