summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Changelog4
-rw-r--r--lib/Travel/Status/DE/DeutscheBahn/Result.pm2
2 files changed, 5 insertions, 1 deletions
diff --git a/Changelog b/Changelog
index e01e0f9..2560640 100644
--- a/Changelog
+++ b/Changelog
@@ -1,3 +1,7 @@
+git HEAD
+
+ * Result->route_interesting: Also consider airports
+
Travel::Status::DE::DeutscheBahn 1.04 - Sun May 03 2015
* Result: Add type accessor
diff --git a/lib/Travel/Status/DE/DeutscheBahn/Result.pm b/lib/Travel/Status/DE/DeutscheBahn/Result.pm
index ca61194..00bfb96 100644
--- a/lib/Travel/Status/DE/DeutscheBahn/Result.pm
+++ b/lib/Travel/Status/DE/DeutscheBahn/Result.pm
@@ -83,7 +83,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 );
}
}