Commit 0ae09e9c authored by Volker Krause's avatar Volker Krause
Browse files

Fix PNR extraction for some sort of DB/ÖBB cross-over ticket

parent daccea6f
......@@ -160,7 +160,7 @@ function parseTicket(text, uic918ticket) {
// international tickets have the booking reference somewhere on the side, so we don't really know
// where it is relative to the itinerary
var bookingRef = text.match(/Auftragsnummer:\s*([A-Z0-9]{6})\n/);
var bookingRef = text.match(/(?:Auftragsnummer|Auftrag \(NVS\)):\s*([A-Z0-9]{6,9})\n/);
for (var i = 0; i < reservations.length; ++i)
reservations[i].reservationNumber = bookingRef[1];
return reservations;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment