Closed markus-k closed 2 years ago
I did some more research on this and while :
seems like a valid character, I couldn't find a single example except for yours. I'll try to fix the bug and add your example to the test base.
Should be fixed now, thanks for the report!
Thank you! My bank statements finally parse correctly.
My banks mt940 are full of colons in the details, e.g.:
:86:106?00Kartenzahlung girocard?10xxx?20EREF+xxxxxxxxxxxxxxx
?27SVWZ+DAS ERDGESCHOSS GIR 69?28xxxxxxx/HAMBURG/DE
?29 xx.01.2022 um 22:44:35?30WELAXXXXXXX
?31DExxxxx0000000xxxxxxx?32DAS ERDGESCHOSS?xxxxx
First of all: I'm not an expert at all on MT940, so this may be a problem with an invalid MT940 statement, but I'm not sure.
Parsing an MT940 statement fails, when the details following tag 86 contain a colon (e.g. from a time). For example this modified statement from the tests, containing a time:
Parsing this statement fails with:
Code used to parse it:
Thank you for any input on this!