Skip to content

Commit b0f7c8b

Browse files
committed
Improve Austrian Anadi Bank AG PDF-Importer
small correction regEx
1 parent 90697c6 commit b0f7c8b

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

name.abuchen.portfolio/src/name/abuchen/portfolio/datatransfer/pdf/AustrianAnadiBankPDFExtractor.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ private void addAccountStatementTransaction()
4141
.find("^Neuer Saldo zu Ihren Gunsten.*$") //
4242
.match("^.* (?<currency>[A-Z]{3}) [\\.,\\d]+(\\-)?$") //
4343
.assign((ctx, v) -> ctx.put("currency", asCurrencyCode(v.get("currency"))))
44+
4445
// @formatter:off
4546
// Inglitschstraße 5A, 050202-0 vom 30.05.2025
4647
// @formatter:on
@@ -64,7 +65,7 @@ private void addAccountStatementTransaction()
6465

6566
.section("date", "amount") //
6667
.documentContext("currency", "year") //
67-
.match("^(?<date>[\\d]{1,2}\\.[\\d]{1,2}) .* [\\d]{1,2}\\.[\\d]{1,2} (?<amount>[\\.,\\d]+)$") //)
68+
.match("^(?<date>[\\d]{1,2}\\.[\\d]{1,2}) .* [\\d]{1,2}\\.[\\d]{1,2} (?<amount>[\\.,\\d]+)$") // )
6869
.assign((t, v) -> {
6970
t.setDateTime(asDate(v.get("date") + '.' + v.get("year")));
7071
t.setCurrencyCode(v.get("currency"));
@@ -129,7 +130,7 @@ private void addAccountStatementTransaction()
129130
})
130131

131132
.section("note").optional() //
132-
.match("^[\\d]{1,2}\\.[\\d]{1,2} (?<note>(ONLINE-FESTGELD|IBAN:).*) [\\d]{1,2}\\.[\\d]{1,2} [\\.,\\d]+-$") //
133+
.match("^[\\d]{1,2}\\.[\\d]{1,2} (?<note>(ONLINE\\-FESTGELD|IBAN:).*) [\\d]{1,2}\\.[\\d]{1,2} [\\.,\\d]+\\-$") //
133134
.assign((t, v) -> t.setNote(trim(v.get("note"))))
134135

135136
.wrap(TransactionItem::new));

0 commit comments

Comments
 (0)