Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
travelynx
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
derf
travelynx
Commits
5cd25d44
Unverified
Commit
5cd25d44
authored
2 years ago
by
Birte Kristina Friesel
Browse files
Options
Downloads
Patches
Plain Diff
hafas: more generic fix for invalid XML
parent
13b4572a
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/Travelynx/Helper/HAFAS.pm
+1
-2
1 addition, 2 deletions
lib/Travelynx/Helper/HAFAS.pm
with
1 addition
and
2 deletions
lib/Travelynx/Helper/HAFAS.pm
+
1
−
2
View file @
5cd25d44
...
@@ -198,8 +198,7 @@ sub get_xml_p {
...
@@ -198,8 +198,7 @@ sub get_xml_p {
# More fixes for invalid XML
# More fixes for invalid XML
$body
=~
s{P&R}{P&R}
;
$body
=~
s{P&R}{P&R}
;
$body
=~
s{Wagen \d+ \K&}{&}
;
$body
=~
s{& }{& }g
;
$body
=~
s{Wagen \d+, \d+ \K&}{&}
;
# <Attribute [...] text="[...]"[...]"" /> is invalid XML.
# <Attribute [...] text="[...]"[...]"" /> is invalid XML.
# Work around it.
# Work around it.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment