summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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}
% }