summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2025-12-17 18:36:45 +0100
committerBirte Kristina Friesel <derf@finalrewind.org>2025-12-17 18:36:45 +0100
commit09d311c1d6f5d4b5e4f8f8e07991c8277487038a (patch)
tree14bf2779f64c66054835a8a797fe3281191bd706
parent781ae7919bbd6a9fe680975144dba1aaa554468c (diff)
app: handle DB Liniennormalisierung (remove redundancy in type / line name)4.37.17
-rw-r--r--templates/app.html.ep3
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/app.html.ep b/templates/app.html.ep
index 8b52c61..03fc44d 100644
--- a/templates/app.html.ep
+++ b/templates/app.html.ep
@@ -74,6 +74,9 @@
% if ($departure->{train_type} and $departure->{train_no}) {
%= $departure->{train_type}
% }
+% if ($departure->{train_type} and $departure->{train_type}) {
+% $departure->{train_line} =~ s{ \Q$departure->{train_type}\E (?= \d ) }{}x;
+% }
% if ($departure->{train_line} ) {
%= $departure->{train_line}
% }