D26258: Fix extraction of Japanese booking.com reservations
Luca Beltrame
noreply at phabricator.kde.org
Sat Dec 28 15:21:10 GMT 2019
lbeltrame created this revision.
lbeltrame added a reviewer: vkrause.
Herald added a project: KDE PIM.
Herald added a subscriber: kde-pim.
lbeltrame requested review of this revision.
REVISION SUMMARY
Booking.com's emails have several quirks when done with Japanese hotels:
1. There is no indication of the country
2. The address contains the hotel name twice: once Romanized, once in Japanese
3. The address has two fields (one Romanized, one Japanese)
4. The order of the Japanese addresses is different
This is somewhat a hack, but the booking.com emails are not structured
enough to extract the information.
TEST PLAN
Tested a Japanese reservation HTML from booking.com, worked. Tested a
non-Japanese reservation from booking.com, worked.
REPOSITORY
R1003 KItinerary: Travel Reservation handling library
BRANCH
booking-com-japanese-address (branched from master)
REVISION DETAIL
https://phabricator.kde.org/D26258
AFFECTED FILES
src/extractors/booking.js
To: lbeltrame, vkrause
Cc: kde-pim, fbampaloukas, dcaliste, dvasin, rodsevich, winterz, vkrause, mlaurent, knauss, dvratil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20191228/5543fcb8/attachment-0001.html>
More information about the kde-pim
mailing list