diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2025-06-19 19:25:17 +0200 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2025-06-19 19:25:17 +0200 |
commit | 60786002a555cd88745bf6865ce4c5ac50f8cbbd (patch) | |
tree | b1712503dafa746b59d5291b7e38079ec4bc0a99 | |
parent | 549f764dde4723e07a85720be080dac0ad33cb66 (diff) |
_history_trains: trim non-ascii characters from travel type for CSS selectors
-rw-r--r-- | templates/_history_trains.html.ep | 2 |
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} %> % } |