summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/Travel/Status/DE/HAFAS.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Travel/Status/DE/HAFAS.pm b/lib/Travel/Status/DE/HAFAS.pm
index 57ec624..316d583 100644
--- a/lib/Travel/Status/DE/HAFAS.pm
+++ b/lib/Travel/Status/DE/HAFAS.pm
@@ -376,6 +376,9 @@ sub mot_mask {
if ( exists $mot_pos{$mot} ) {
$mot_mask |= 1 << $mot_pos{$mot};
}
+ elsif ( $mot =~ m{ ^ \d+ $ }x ) {
+ $mot_mask |= 1 << $mot;
+ }
}
}
@@ -384,6 +387,9 @@ sub mot_mask {
if ( exists $mot_pos{$mot} ) {
$mot_mask &= ~( 1 << $mot_pos{$mot} );
}
+ elsif ( $mot =~ m{ ^ \d+ $ }x ) {
+ $mot_mask &= ~( 1 << $mot );
+ }
}
}