From 7e0e9260c64432ca40527221ff6b42bc5c376126 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 8 May 2015 14:09:37 +0200 Subject: route_interesting: also consider airports --- Changelog | 1 + lib/Travel/Status/DE/IRIS/Result.pm | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Changelog b/Changelog index 377b91a..0b88685 100644 --- a/Changelog +++ b/Changelog @@ -1,6 +1,7 @@ git HEAD * IRIS->new: Fix default lwp_options value (was documented, but not used) + * Result->route_interesting: Also consider airports Travel::Status::DE::IRIS 1.00 - Fri May 01 2015 diff --git a/lib/Travel/Status/DE/IRIS/Result.pm b/lib/Travel/Status/DE/IRIS/Result.pm index 7998a1f..390b3c4 100644 --- a/lib/Travel/Status/DE/IRIS/Result.pm +++ b/lib/Travel/Status/DE/IRIS/Result.pm @@ -633,7 +633,7 @@ sub route_interesting { $max_parts //= 3; for my $stop (@via) { - if ( $stop =~ m{ ?Hbf}o ) { + if ( $stop =~ m{ Hbf | Flughafen }ox ) { push( @via_main, $stop ); } } -- cgit v1.2.3