summaryrefslogtreecommitdiff
path: root/lib/Travel
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2014-03-03 20:42:46 +0100
committerDaniel Friesel <derf@finalrewind.org>2014-03-03 20:42:46 +0100
commit8ad7cfccf15da80813535f65f0fbb1cf2b7a6d9e (patch)
tree34056f9399bdd2c0bd7f945227fa2f9847e703db /lib/Travel
parent847c9272f8f9e4de3d41840bc23c127c629b0a66 (diff)
yet another platform name fix
Diffstat (limited to 'lib/Travel')
-rw-r--r--lib/Travel/Status/DE/EFA.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Travel/Status/DE/EFA.pm b/lib/Travel/Status/DE/EFA.pm
index 0f199c6..d22b136 100644
--- a/lib/Travel/Status/DE/EFA.pm
+++ b/lib/Travel/Status/DE/EFA.pm
@@ -347,9 +347,12 @@ sub results {
$platform_is_db = 1;
}
- if ($platform_name) {
+ if ( $platform_name and $platform_name =~ m{ ^ (Gleis | Bstg\.)}ox ) {
$platform = ( split( / /, $platform_name ) )[1];
}
+ elsif ( $platform_name and not $platform ) {
+ $platform = $platform_name;
+ }
push(
@results,