[pim/kitinerary/release/26.08] src/lib/scripts: Support seat ranges in DB PDF tickets

Volker Krause <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 31b29436f692baf89916b1159de022aca0f8157d by Volker Krause.
Committed on 06/08/2026 at 16:09.
Pushed by vkrause into branch 'release/26.08'.

Support seat ranges in DB PDF tickets

(cherry picked from commit 35a70c69b3edd57038869dff123c4beb127b0572)

M  +1    -1    src/lib/scripts/deutschebahn.js

https://invent.kde.org/pim/kitinerary/-/commit/31b29436f692baf89916b1159de022aca0f8157d

diff --git a/src/lib/scripts/deutschebahn.js b/src/lib/scripts/deutschebahn.js
index f89943ec..98d595ad 100644
--- a/src/lib/scripts/deutschebahn.js
+++ b/src/lib/scripts/deutschebahn.js
@@ -12,7 +12,7 @@ function parseSeat(res, text) {
     var coach = text.match(/Wg. (\d+)/);
     if (coach)
         res.reservedTicket.ticketedSeat.seatSection = coach[1];
-    var seat = text.match(/Pl. ([\d ]+\d)/);
+    var seat = text.match(/Pl. ([\d -]+\d)/);
     if (seat)
         res.reservedTicket.ticketedSeat.seatNumber = seat[1];
 }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.