summaryrefslogtreecommitdiff
path: root/bin/hafas-m
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-12-26 13:02:51 +0100
committerBirte Kristina Friesel <derf@finalrewind.org>2024-12-26 13:02:51 +0100
commit84ebea9479398b5600a592b478556af04779ae39 (patch)
treed43444494981b339f4f0faff5ed0fae06ed9001e /bin/hafas-m
parent287036adfed2b057bc69ec7b414e9de1126c6bb8 (diff)
Whitespace in JourneyIDs is optional. Trim it for easier copy-pasting.HEADmain
Diffstat (limited to 'bin/hafas-m')
-rwxr-xr-xbin/hafas-m4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/hafas-m b/bin/hafas-m
index ae1ffca..5022a3a 100755
--- a/bin/hafas-m
+++ b/bin/hafas-m
@@ -384,7 +384,7 @@ if ( $opt{journeyMatch} ) {
for my $result ( $status->results ) {
my $start = ( $result->route )[0];
my $end = ( $result->route )[-1];
- say $result->id;
+ say $result->id =~ s{ }{}gr;
print $result->name;
if ( $result->number ) {
printf( " | Nr %s", $result->number );
@@ -646,7 +646,7 @@ else {
}
if ($show_jid) {
- $info_line = $d->id . ' ' . $info_line;
+ $info_line = $d->id =~ s{ }{}gr . ' ' . $info_line;
}
my $entry = [