summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2025-06-19 23:00:35 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2025-06-19 23:00:35 +0200
commit4ebbc02cd257d00224c55b651626fc6571e4b258 (patch)
tree8d8a6cb25b83fb75ac20d7ec21d6252feccfac39
parent43eeb702c198bf44defc0a088da7854b77795ed2 (diff)
_format_train: dep-line: strip non-ascii chars
Rel: #254 Specifically https://github.com/derf/travelynx/pull/254#issuecomment-2988843123
-rw-r--r--templates/_format_train.html.ep2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/_format_train.html.ep b/templates/_format_train.html.ep
index e82f3f9..cb81211 100644
--- a/templates/_format_train.html.ep
+++ b/templates/_format_train.html.ep
@@ -1,7 +1,7 @@
% if ($journey->{extra_data}{wagonorder_pride}) {
🏳️‍🌈
% }
-<span class="dep-line <%= $journey->{train_type} // q{} %>">
+<span class="dep-line <%= ($journey->{train_type} // q{}) =~ tr{a-zA-Z_-}{}cdr %>">
% if (not $journey->{is_motis}) {
<%= $journey->{train_type} %>
% }