diff options
author | Daniel Friesel <derf@finalrewind.org> | 2021-03-29 20:58:35 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2021-03-29 20:58:35 +0200 |
commit | 11727e0f99decf316ae19e6ccf0321610ab7a6f5 (patch) | |
tree | 9dd2b65bc5e68add37303f6427fe714e5d02fa3b /lib | |
parent | 74ae9825bf3c70f40a437e74e6db566edc110aa5 (diff) |
*sigh* oh hafas, you so hafas1.19.9
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Travelynx/Helper/HAFAS.pm | 3 |
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&R}; - $body =~ s{Wagen \d+ \K&(?= )}{&}; + $body =~ s{Wagen \d+ \K&}{&}; + $body =~ s{Wagen \d+, \d+ \K&}{&}; # <Attribute [...] text="[...] "[...]"" /> is invalid XML. # Work around it. |