From 9d4a189833409c5ffa7852bb30e6b1a64be04889 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 30 Mar 2022 18:24:50 +0200 Subject: HAFAS: more generic fix for invalid XML --- lib/DBInfoscreen/Helper/HAFAS.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/DBInfoscreen/Helper/HAFAS.pm b/lib/DBInfoscreen/Helper/HAFAS.pm index 31615b1..48632c0 100644 --- a/lib/DBInfoscreen/Helper/HAFAS.pm +++ b/lib/DBInfoscreen/Helper/HAFAS.pm @@ -119,7 +119,7 @@ sub get_xml_p { # More fixes for invalid XML $body =~ s{P&R}{P&R}; - $body =~ s{Wagen \d+ \K&(?= )}{&}; + $body =~ s{& }{& }g; # is invalid XML. # Work around it. -- cgit v1.2.3