summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2021-03-29 20:58:35 +0200
committerDaniel Friesel <derf@finalrewind.org>2021-03-29 20:58:35 +0200
commit11727e0f99decf316ae19e6ccf0321610ab7a6f5 (patch)
tree9dd2b65bc5e68add37303f6427fe714e5d02fa3b /lib
parent74ae9825bf3c70f40a437e74e6db566edc110aa5 (diff)
*sigh* oh hafas, you so hafas1.19.9
Diffstat (limited to 'lib')
-rw-r--r--lib/Travelynx/Helper/HAFAS.pm3
1 files changed, 2 insertions, 1 deletions
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&amp;R};
- $body =~ s{Wagen \d+ \K&(?= )}{&amp;};
+ $body =~ s{Wagen \d+ \K&}{&amp;};
+ $body =~ s{Wagen \d+, \d+ \K&}{&amp;};
# <Attribute [...] text="[...] "[...]"" /> is invalid XML.
# Work around it.