diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2025-06-19 23:00:35 +0200 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2025-06-19 23:00:35 +0200 |
commit | 4ebbc02cd257d00224c55b651626fc6571e4b258 (patch) | |
tree | 8d8a6cb25b83fb75ac20d7ec21d6252feccfac39 | |
parent | 43eeb702c198bf44defc0a088da7854b77795ed2 (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.ep | 2 |
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} %> % } |