From 5cd25d442f01e6159fde7814acac5a5c201a3a6c Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 30 Mar 2022 18:29:00 +0200 Subject: hafas: more generic fix for invalid XML --- lib/Travelynx/Helper/HAFAS.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/Travelynx/Helper/HAFAS.pm b/lib/Travelynx/Helper/HAFAS.pm index c4bc66a..a248548 100644 --- a/lib/Travelynx/Helper/HAFAS.pm +++ b/lib/Travelynx/Helper/HAFAS.pm @@ -198,8 +198,7 @@ sub get_xml_p { # More fixes for invalid XML $body =~ s{P&R}{P&R}; - $body =~ s{Wagen \d+ \K&}{&}; - $body =~ s{Wagen \d+, \d+ \K&}{&}; + $body =~ s{& }{& }g; # is invalid XML. # Work around it. -- cgit v1.2.3