diff options
author | Daniel Friesel <derf@finalrewind.org> | 2020-12-14 18:36:56 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2020-12-14 18:36:56 +0100 |
commit | 7aa2d601c6e1d313f8daa2921e8b8adfaa0dc570 (patch) | |
tree | dcaf443437201d81d290d5e2f0261a0ea175f5d9 | |
parent | ecdf85ea274fa0cc790ffaeb66624c94460133e3 (diff) |
catch more routes
-rwxr-xr-x | bin/db-wagenreihung-to-json | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/db-wagenreihung-to-json b/bin/db-wagenreihung-to-json index c0bf401..ceb1a7e 100755 --- a/bin/db-wagenreihung-to-json +++ b/bin/db-wagenreihung-to-json @@ -275,7 +275,7 @@ for my $line (@lines) { $state = ""; } - elsif ( $state eq "train_no" and $line =~ m{ ^ \s{5} \S }x ) { + elsif ( $state eq "train_no" and $line =~ m{ ^ \s{3,5} \S }x ) { $state = "route"; $map{$number}{route} = ""; } @@ -318,7 +318,7 @@ for my $line (@lines) { } } - if ( $state eq "route" and $line =~ m{ ^ \s{5} (?<route> .* ) $ }x ) { + if ( $state eq "route" and $line =~ m{ ^ \s{3,5} (?<route> .* ) $ }x ) { if ( length( $map{$number}{route} ) ) { $map{$number}{route} .= ' '; } |