From a7942591cfacde1e9c70b49a2347e24fd389ba01 Mon Sep 17 00:00:00 2001
From: Birte Kristina Friesel <birte.friesel@uos.de>
Date: Wed, 23 Oct 2024 20:27:50 +0200
Subject: [PATCH] hafas: Handle _ in mot array

---
 bin/hafas | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

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;
-- 
GitLab