a-fas / mt940js

Swift MT940 bank statement javascript parser
Apache License 2.0
32 stars 17 forks source link

Block 5 missing in first message of every file #14

Closed nickidk4 closed 5 years ago

nickidk4 commented 5 years ago

Block 5 is missing in the first swift message of every input file.

I can see block 5 is in the input file, but it is not returned in the parser.

a-fas commented 5 years ago

mmmm, example ? cli shows fine in this test - https://github.com/a-fas/mt940js/blob/master/test/testX.mt940

nickidk4 commented 5 years ago

I grab each swift message from my input file with regex, because I get extra lines of information before each swift message from sending bank. And I did not concatenate each swift message with a "/n" and this caused it somehow to not catch the first block 5. After adding "/n" it works perfectly! I currently don't have any other errors :D