Fix extraction of Japanese booking.com reservations

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

Description

Fix extraction of Japanese booking.com reservations

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.

Reviewers: vkrause

Reviewed By: vkrause

Subscribers: kde-pim

Tags: KDE PIM

Differential Revision: https://phabricator.kde.org/D26258

Details

Committed
lbeltrameDec 28 2019, 3:34 PM
Reviewer
vkrause
Differential Revision
D26258: Fix extraction of Japanese booking.com reservations
Parents
R1003:187c2d0d56ab: GIT_SILENT: Time to increase version
Branches
Unknown
Tags
Unknown