firefly-iii-fints-importer
firefly-iii-fints-importer copied to clipboard
How to handle line breaks in the transaction description field?
Setup
Importing transcations in firefly is basically working, but when importing transactions with line breaks in the description they seem to be removed automatically.
I'm using the latest release at the time of writing.
I'm using the following json configuration:
{
"bank_username": "123456",
"bank_password": "123456",
"bank_code": "123456",
"bank_url": "https://fints.comdirect.de/fints",
"bank_2fa": "902",
"bank_2fa_device": "",
"firefly_url": "http://firefly:8080",
"firefly_access_token": "xxx",
"skip_transaction_review": "false",
"__description_regex_comment__": "To disable the regex search & replace of the transaction description, set both to an empty string.",
"description_regex_match": "/^(Übertrag \\/ Überweisung|Lastschrift \\/ Belastung)(.*)(END-TO-END-REF.*|Karte.*|KFN.*)(Ref\\..*)$/mi",
"description_regex_replace": "$2 [$1 | $3 | $4]",
"auto_submit_form_via_js": false,
"choose_account_automation": {
"bank_account_iban": "123456",
"firefly_account_id": "217",
"__from_to_comment__": "The following values will be passed directly into DateTime. Set them to null to choose them manually during import process.",
"from": null,
"to": null
}
}
Actual result
In my online banking I have the following transaction:
Notice the line breaks in the description field called
Buchungstext
.
The same transaction looks like this after importing in firefly:
So the description_regex_match
is basically working by changing the order of the fields but the line breaks seem to be removed which results in the description text being written without space.
Expected result
I expected to see see at least some spaces when a line break occurs in the description field. How can I achieve this?