File indexing completed on 2024-12-29 04:51:03

0001 /*
0002    SPDX-FileCopyrightText: 2022 Volker Krause <vkrause@kde.org>
0003    SPDX-License-Identifier: LGPL-2.0-or-later
0004 */
0005 
0006 function parsePdfTicket(pdf, node, trigger) {
0007     let ticket = trigger.result[0];
0008     const text = pdf.pages[trigger.location].text;
0009     ticket.name = text.match(/^(.*)\n/)[1];
0010     return ticket;
0011 }