summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates/_history_trains.html.ep2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/_history_trains.html.ep b/templates/_history_trains.html.ep
index 7ae2a1d..04efda6 100644
--- a/templates/_history_trains.html.ep
+++ b/templates/_history_trains.html.ep
@@ -16,7 +16,7 @@
% }
<li class="collection-item">
<a href="<%= $detail_link %>">
- <span class="dep-line <%= $travel->{type} // q{} %>">
+ <span class="dep-line <%= ($travel->{type} // q{}) =~ tr{a-zA-Z_-}{}cdr %>">
% if (not $travel->{is_motis}) {
<%= $travel->{type} %>
% }