diff options
author | Daniel Friesel <derf@finalrewind.org> | 2011-07-13 13:13:24 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2011-07-13 13:13:24 +0200 |
commit | 10687196f1f39d01c17a415898758b3a65608396 (patch) | |
tree | 8b5a96f84880afb090e0910daaf81f6c1e5b08b8 /bin/db-ris | |
parent | d463bbcd8475dd0261fb28efcc7b4b6d079a27a1 (diff) |
DeutscheBahn/Result: Return only useful text in info, add info_raw for the raw string
Diffstat (limited to 'bin/db-ris')
-rwxr-xr-x | bin/db-ris | 10 |
1 files changed, 1 insertions, 9 deletions
@@ -84,14 +84,6 @@ sub display_result { return; } -sub filter_info { - my ($info) = @_; - - $info =~ s{ (?: ^ | , ) (?: p.nktlich | k [.] A [.] ) }{}x; - - return $info; -} - sub filter_via { my (@via) = @_; @@ -151,7 +143,7 @@ for my $d ( $status->results() ) { [ $d->time, $d->train, join( q{ }, filter_via(@via) ), $d->destination, - $d->platform, filter_info( $d->info ) + $d->platform, $d->info, ] ); } |