summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2020-12-20 16:33:34 +0100
committerDaniel Friesel <derf@finalrewind.org>2020-12-20 16:33:34 +0100
commit500ac4b613ff8c75c3da695368767509e0c8c1f9 (patch)
tree43c4ed21ba744c6c98b63b342bd2ce2280da6e15
parentef277d778f64048673c0dd6cffe8aab92a9731ff (diff)
add LNF trains (empty sleeper cars?)
-rwxr-xr-xbin/db-wagenreihung-to-json7
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/db-wagenreihung-to-json b/bin/db-wagenreihung-to-json
index 01ebe2d..4d2ca44 100755
--- a/bin/db-wagenreihung-to-json
+++ b/bin/db-wagenreihung-to-json
@@ -268,16 +268,17 @@ for my $line (@lines) {
$map{$number}{type} = $type;
}
}
- elsif (
- $line =~ m{ ^ (?<type> LPF T? (-[A-Z])? ) (?<number> [ 0-9]{2,16}) }x )
+ elsif ( $line
+ =~ m{ ^ (?<type> L[NP]F T? (-[A-Z])? ) (?<number> [ 0-9]{2,16}) }x )
{
- # Not in passenger service ("Leehrfahrt"). Ignore it for now.
+ # Probably not in passenger service ("Leehrfahrt")
# FWIW, LPF(T) can be further distinguished:
# LPFT-A: ICE BR 401/402
# LPFT-B: ICE BR 412
# LPFT-T: ICE BR 411 / 415 / 605
# LPFT-W: ICE BR 403 / 406
+ # LNF seems to be related to couchettes / sleeper cars.
#$number = undef;
#$state = "";