Commit e65397b4 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

Make regular expression on np4 booking code less precise

In case of code-sharing the booking number can consist of multiple codes from each
airline, e.g. "ABCDEF/GHIJKL (Other Airline)"

Reviewed-By: vkrause
parent 6de777d3
......@@ -63,7 +63,7 @@ function parseEvent(event)
return null;
var refNum = event.description.match(/(?:Reservation code|Buchungsnummer|Buchungscode):\s(\w+)\n/);
var refNum = event.description.match(/(?:Reservation code|Buchungsnummer|Buchungscode):\s(.+)\n/);
res.reservationNumber = refNum[1];
return res;
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