Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
KItinerary
Manage
Activity
Members
Labels
Plan
Issues
2
Issue boards
Milestones
Wiki
Bugzilla
Code
Merge requests
5
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PIM
KItinerary
Commits
12cabf13
Commit
12cabf13
authored
4 years ago
by
Volker Krause
Browse files
Options
Downloads
Patches
Plain Diff
Fix address extraction in NH Hotel booking confirmations
parent
af1af38f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/extractors/nh-hotels.js
+1
-1
1 addition, 1 deletion
src/extractors/nh-hotels.js
with
1 addition
and
1 deletion
src/extractors/nh-hotels.js
+
1
−
1
View file @
12cabf13
...
...
@@ -34,7 +34,7 @@ function parseHtml(doc) {
res
.
reservationFor
.
name
=
nameElem
.
content
;
var
addrElem
=
nameElem
.
parent
.
nextSibling
.
nextSibling
.
nextSibling
.
firstChild
;
var
addr
=
addrElem
.
content
.
match
(
/
(
[^
,
]
*
)
,
(
.
*
)
/
);
var
addr
=
addrElem
.
content
.
match
(
/
(
.*
)
,
?([^
,
]
*
)
/
);
res
.
reservationFor
.
address
=
JsonLd
.
newObject
(
"
PostalAddress
"
);
res
.
reservationFor
.
address
.
streetAddress
=
addr
[
1
];
res
.
reservationFor
.
address
.
addressLocality
=
addr
[
2
];
...
...
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