summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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,