mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-04 13:58:12 +00:00
Poprawka w filtrowaniu pociągów
This commit is contained in:
@@ -44,7 +44,7 @@ function filterTrainList(trainList: Train[], searchedTrain: string, searchedDriv
|
|||||||
return !train.timetableData.category.startsWith('T');
|
return !train.timetableData.category.startsWith('T');
|
||||||
|
|
||||||
case TrainFilterType.other:
|
case TrainFilterType.other:
|
||||||
return !/^[PXZ]\D{2}$/.test(train.timetableData.category);
|
return !/^[PXZL]\D{2}$/.test(train.timetableData.category);
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user