Commit 4fa1eadd authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

db-iris: fix --via not matching dest of trains with incomplete route data

parent e10cf4f5
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
git HEAD

    * IRIS / db-iris: Add lookahead option
    * db-iris: Fix --via not matching destination of trains with incomplete
      route data

Travel::Status::DE::IRIS 0.02 - Mon Feb 03 2014

+2 −1
Original line number Diff line number Diff line
@@ -272,7 +272,8 @@ for my $d ( $status->results() ) {

	my @via;

	@via = $d->route_post;
	# route may be incomplete, so check route_end as well
	@via = ( $d->route_post, $d->route_end );

	if (   ( $filter_via and not( first { $_ =~ m{$filter_via}io } @via ) )
		or ( @grep_class and none { $_ ~~ \@grep_class } $d->classes )