From 11727e0f99decf316ae19e6ccf0321610ab7a6f5 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 29 Mar 2021 20:58:35 +0200 Subject: *sigh* oh hafas, you so hafas --- lib/Travelynx/Helper/HAFAS.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Travelynx/Helper/HAFAS.pm b/lib/Travelynx/Helper/HAFAS.pm index e04245b..c612238 100644 --- a/lib/Travelynx/Helper/HAFAS.pm +++ b/lib/Travelynx/Helper/HAFAS.pm @@ -195,7 +195,8 @@ sub get_xml_p { # More fixes for invalid XML $body =~ s{P&R}{P&R}; - $body =~ s{Wagen \d+ \K&(?= )}{&}; + $body =~ s{Wagen \d+ \K&}{&}; + $body =~ s{Wagen \d+, \d+ \K&}{&}; # is invalid XML. # Work around it. -- cgit v1.2.3