summaryrefslogtreecommitdiff
path: root/lib/Travel/Status/DE/DeutscheBahn.pm
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-07-13 13:13:24 +0200
committerDaniel Friesel <derf@finalrewind.org>2011-07-13 13:13:24 +0200
commit10687196f1f39d01c17a415898758b3a65608396 (patch)
tree8b5a96f84880afb090e0910daaf81f6c1e5b08b8 /lib/Travel/Status/DE/DeutscheBahn.pm
parentd463bbcd8475dd0261fb28efcc7b4b6d079a27a1 (diff)
DeutscheBahn/Result: Return only useful text in info, add info_raw for the raw string
Diffstat (limited to 'lib/Travel/Status/DE/DeutscheBahn.pm')
-rw-r--r--lib/Travel/Status/DE/DeutscheBahn.pm5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/Travel/Status/DE/DeutscheBahn.pm b/lib/Travel/Status/DE/DeutscheBahn.pm
index 8919dfc..9f71eb0 100644
--- a/lib/Travel/Status/DE/DeutscheBahn.pm
+++ b/lib/Travel/Status/DE/DeutscheBahn.pm
@@ -142,9 +142,6 @@ sub results {
$str =~ s/ +$//;
}
- $info =~ s{ ,Grund }{}ox;
- $info =~ s{ ^ \s+ }{}ox;
-
while ( $route =~ m{$re_via}g ) {
if ($first) {
$first = 0;
@@ -168,7 +165,7 @@ sub results {
route => \@via,
route_end => $dest,
platform => $platform,
- info => $info,
+ info_raw => $info,
)
);
}