From 715d17ed09788e9ab3e050d2e84422be738ed7f6 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Sun, 11 Aug 2024 09:05:41 +0200 Subject: Group: IC2 ("ICD") have designations as well --- lib/Travel/Status/DE/DBWagenreihung/Group.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Travel/Status/DE') diff --git a/lib/Travel/Status/DE/DBWagenreihung/Group.pm b/lib/Travel/Status/DE/DBWagenreihung/Group.pm index a38c52c..39657c1 100644 --- a/lib/Travel/Status/DE/DBWagenreihung/Group.pm +++ b/lib/Travel/Status/DE/DBWagenreihung/Group.pm @@ -354,7 +354,7 @@ sub new { train_no => $json{transport}{number}, }; - if ( $ref->{name} =~ m{ ^ ICE 0* (\d+) $ }x and exists $ice_name{$1} ) { + if ( $ref->{name} =~ m{ ^ IC[DE] 0* (\d+) $ }x and exists $ice_name{$1} ) { $ref->{designation} = $ice_name{$1}; } -- cgit v1.2.3