summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2025-06-19 19:25:17 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2025-06-19 19:25:17 +0200
commit60786002a555cd88745bf6865ce4c5ac50f8cbbd (patch)
treeb1712503dafa746b59d5291b7e38079ec4bc0a99
parent549f764dde4723e07a85720be080dac0ad33cb66 (diff)
_history_trains: trim non-ascii characters from travel type for CSS selectors
-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} %>
% }