summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBirte Kristina Friesel <birte.friesel@uos.de>2024-10-23 20:27:50 +0200
committerBirte Kristina Friesel <birte.friesel@uos.de>2024-10-23 20:27:50 +0200
commita7942591cfacde1e9c70b49a2347e24fd389ba01 (patch)
treeef16f6360fa7509a8301045744666472b27858a8
parent407c2a34ed319ba97b8771959b60b0154cee24df (diff)
hafas: Handle _ in mot array
-rwxr-xr-xbin/hafas4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/hafas b/bin/hafas
index 543579a..a322ee7 100755
--- a/bin/hafas
+++ b/bin/hafas
@@ -170,7 +170,9 @@ sub parse_mot_options {
my @mots = @{ $desc->{productbits} };
for my $mot ( @{ $desc->{productbits} } ) {
if ( ref($mot) eq 'ARRAY' ) {
- printf( "%-10s %s\n", @{$mot} );
+ if ( $mot->[0] ne '_' ) {
+ printf( "%-10s %s\n", @{$mot} );
+ }
}
else {
say $mot;