diff options
author | Daniel Friesel <derf@finalrewind.org> | 2020-12-14 18:40:11 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2020-12-14 18:40:11 +0100 |
commit | 4ce655c307650b36a6b041690557a517a3e0b04f (patch) | |
tree | 73b910d51ea0429223f70e5eaa77b9e04a5f4099 | |
parent | 7aa2d601c6e1d313f8daa2921e8b8adfaa0dc570 (diff) |
waht
-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 ceb1a7e..00f9518 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{3,5} \S }x ) { + elsif ( $state eq "train_no" and $line =~ m{ ^ \s{2,6} \S }x ) { $state = "route"; $map{$number}{route} = ""; } @@ -318,7 +318,7 @@ for my $line (@lines) { } } - if ( $state eq "route" and $line =~ m{ ^ \s{3,5} (?<route> .* ) $ }x ) { + if ( $state eq "route" and $line =~ m{ ^ \s{2,6} (?<route> .* ) $ }x ) { if ( length( $map{$number}{route} ) ) { $map{$number}{route} .= ' '; } |