File indexing completed on 2024-12-29 04:51:03
0001 /* 0002 SPDX-FileCopyrightText: 2023 Volker Krause <vkrause@kde.org> 0003 SPDX-License-Identifier: LGPL-2.0-or-later 0004 */ 0005 0006 function extractBoardingPass(pdf, node, barcode) { 0007 const text = pdf.pages[barcode.location].text; 0008 let res = barcode.result[0]; 0009 const times = text.match(/(\d\d:\d\d) +(\d\d:\d\d)\n/); 0010 res.reservationFor.boardingTime = JsonLd.toDateTime(times[1], "hh:mm", "en"); 0011 res.reservationFor.departureTime = JsonLd.toDateTime(times[2], "hh:mm", "en"); 0012 return res; 0013 }