diff options
author | Daniel Friesel <derf@finalrewind.org> | 2019-01-03 18:18:13 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2019-01-03 18:18:13 +0100 |
commit | ef3753ea59541bab79dd8ae72b45cf2046502307 (patch) | |
tree | 9453839542639e048eb2368d5e1e7bcfca1e674a /lib/Travel/Status/DE/DBWagenreihung | |
parent | 0892c03c405c2e80076d763d200d91af33230353 (diff) |
handle empty Baureihe (e.g. for swiss EC trains)
Diffstat (limited to 'lib/Travel/Status/DE/DBWagenreihung')
-rw-r--r-- | lib/Travel/Status/DE/DBWagenreihung/Wagon.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Travel/Status/DE/DBWagenreihung/Wagon.pm b/lib/Travel/Status/DE/DBWagenreihung/Wagon.pm index 9d6199f..2f45e2a 100644 --- a/lib/Travel/Status/DE/DBWagenreihung/Wagon.pm +++ b/lib/Travel/Status/DE/DBWagenreihung/Wagon.pm @@ -73,7 +73,7 @@ sub new { $ref->{section} = $opt{fahrzeugsektor}; $ref->{type} = $opt{fahrzeugtyp}; - $ref->{model} =~ s{^.....(...)....$}{$1}; + $ref->{model} =~ s{^.....(...)....$}{$1} or $ref->{model} = undef; my $self = bless( $ref, $obj ); |