Commit 754ac741 authored by Volker Krause's avatar Volker Krause
Browse files

Correctly extract mono-lingual Norwegian tickets too

parent c8ba5ac4
......@@ -25,7 +25,7 @@ function extractPdf(pdf) {
var pnr = page.text.match(/\nBooking reference.*(.{6})\n/);
res.reservationNumber = pnr[1];
var name = page.text.match(/\nPassenger\s+\S+ (.*)\/(.*)\n/);
var name = page.text.match(/\nPassenger\s+(?:\S+)? ([A-Z ]+)\/(.+)\n/);
res.underName.familyName = name[1];
res.underName.givenName = name[2];
......
Markdown is supported
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