summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2015-05-08 14:09:37 +0200
committerDaniel Friesel <derf@finalrewind.org>2015-05-08 14:09:37 +0200
commit7e0e9260c64432ca40527221ff6b42bc5c376126 (patch)
tree998f4fa4e59cfe91f645572f72d147d761af434e
parent57f3f4da23fa0785e7d5fdd16a0d882a2ea2efc2 (diff)
route_interesting: also consider airports
-rw-r--r--Changelog1
-rw-r--r--lib/Travel/Status/DE/IRIS/Result.pm2
2 files changed, 2 insertions, 1 deletions
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 );
}
}