Fix extraction of Japanese booking.com reservations
ClosedPublic

Authored by lbeltrame on Dec 28 2019, 3:21 PM.

Details

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.

Diff Detail

Repository
R1003 KItinerary: Travel Reservation handling library
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
lbeltrame created this revision.Dec 28 2019, 3:21 PM
Restricted Application added a project: KDE PIM. · View Herald TranscriptDec 28 2019, 3:21 PM
Restricted Application added a subscriber: kde-pim. · View Herald Transcript
lbeltrame requested review of this revision.Dec 28 2019, 3:21 PM
vkrause accepted this revision.Dec 28 2019, 3:28 PM

Thanks!

This revision is now accepted and ready to land.Dec 28 2019, 3:28 PM
This revision was automatically updated to reflect the committed changes.