Commit adecc4cb authored by Nicolas Fella's avatar Nicolas Fella
Browse files

[onepagebooking] Fix extracting number of adults

Both 'Erwachsener' and 'Erwachsenen' appear in the wild
parent 5a69849a
Pipeline #84252 passed with stage
in 16 minutes and 6 seconds
......@@ -32,7 +32,7 @@ function main(content) {
const price = content.match(/Gesamtpreis: (.*) EUR/)[1].replace(',', '.')
const numberAdults = content.match(/Anzahl der Erwachsener: ([0-9]+)/)[1]
const numberAdults = content.match(/Anzahl der Erwachsene[rn]: ([0-9]+)/)[1]
const numberChildren = content.match(/Anzahl der Kinder: ([0-9]+)/)[1]
......
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