Loading lib/Travelynx/Helper/HAFAS.pm +7 −2 Original line number Diff line number Diff line Loading @@ -170,7 +170,12 @@ sub get_route_timestamps_p { } } my $iris_stations = join( '|', $opt{train}->route ); my $hafas_stations = join( '|', @station_list ); # borders (Gr" as in "Grenze") are only returned by HAFAS. # They are not stations. my $hafas_stations = join( '|', grep { $_ !~ m{(\(Gr\)|\)Gr)$} } @station_list ); if ( $iris_stations eq $hafas_stations or index( $hafas_stations, $iris_stations ) != -1 ) { Loading Loading
lib/Travelynx/Helper/HAFAS.pm +7 −2 Original line number Diff line number Diff line Loading @@ -170,7 +170,12 @@ sub get_route_timestamps_p { } } my $iris_stations = join( '|', $opt{train}->route ); my $hafas_stations = join( '|', @station_list ); # borders (Gr" as in "Grenze") are only returned by HAFAS. # They are not stations. my $hafas_stations = join( '|', grep { $_ !~ m{(\(Gr\)|\)Gr)$} } @station_list ); if ( $iris_stations eq $hafas_stations or index( $hafas_stations, $iris_stations ) != -1 ) { Loading