The format is free-form text, so regular expressions are necessary.
Everything but the train name/number (which is not in the email sent by
their system) is extracted.
Details
Details
Manually fed an email in kitinerary-workbench, got data extracted.
Diff Detail
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.
Comment Actions
Thanks! Test data is always a good idea to prevent this breaking on engine changes. For plain text it might even be possible to create a synthetic one to add to the extractor tests in this repo, but that's not a blocker.
src/extractors/kintetsu.js | ||
---|---|---|
35 | Those two lines should not be needed. |