From 2cc7db6de55f116f5e5b859ee9b5265e77d7f6d5 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 25 Jun 2015 08:52:26 +0200 Subject: update route_interesting for yesterday's changes (partially still FIXME cause of encapsulation issues) --- lib/Travel/Status/DE/EFA/Result.pm | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/Travel/Status/DE/EFA/Result.pm b/lib/Travel/Status/DE/EFA/Result.pm index 24c7b88..36bf052 100644 --- a/lib/Travel/Status/DE/EFA/Result.pm +++ b/lib/Travel/Status/DE/EFA/Result.pm @@ -52,7 +52,7 @@ sub route_interesting { for my $stop (@via) { if ( - $stop->{stop_suf} =~ m{ Bf | Hbf | Flughafen | Hauptbahnhof + $stop->name_suf =~ m{ Bf | Hbf | Flughafen | Hauptbahnhof | Krankenhaus | Klinik | (?: S $ ) }ox ) { @@ -85,9 +85,10 @@ sub route_interesting { while ( @via_show < $max_parts and @via_main ) { my $stop = shift(@via_main); - if ( $stop ~~ \@via_show or $stop == $last_stop ) { - next; - } + # FIXME cannot smartmatch $stop since it became an object +# if ( $stop ~~ \@via_show or $stop == $last_stop ) { +# next; +# } push( @via_show, $stop ); } } -- cgit v1.2.3