-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix import OFX file with linebreak before headers and not ASCII content
- Loading branch information
1 parent
25aa800
commit b9b53b2
Showing
3 changed files
with
62 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
tests/fixtures/linebreak-before-headers-with-non-ascii-content.ofx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
|
||
OFXHEADER:100 | ||
DATA:OFXSGML | ||
VERSION:102 | ||
SECURITY:NONE | ||
ENCODING:USASCII | ||
CHARSET:1252 | ||
COMPRESSION:NONE | ||
OLDFILEUID:NONE | ||
NEWFILEUID:NONE | ||
|
||
<OFX> | ||
<SIGNONMSGSRSV1> | ||
<SONRS> | ||
<STATUS> | ||
<CODE>0 | ||
<SEVERITY>INFO | ||
</STATUS> | ||
<DTSERVER>20240820120000 | ||
<LANGUAGE>POR | ||
</SONRS> | ||
</SIGNONMSGSRSV1> | ||
<BANKMSGSRSV1> | ||
<STMTTRNRS> | ||
<TRNUID>1001 | ||
<STATUS> | ||
<CODE>0 | ||
<SEVERITY>INFO | ||
</STATUS> | ||
<STMTRS> | ||
<CURDEF>BRL | ||
<BANKACCTFROM> | ||
<BANKID>0237 | ||
<ACCTID>479984 | ||
<ACCTTYPE>CHECKING | ||
</BANKACCTFROM> | ||
<BANKTRANLIST> | ||
<DTSTART>20240820120000 | ||
<DTEND>20240820120000 | ||
<STMTTRN> | ||
<TRNTYPE>DEBIT | ||
<DTPOSTED>20240802120000 | ||
<TRNAMT>2000,00 | ||
<FITID>N10235 | ||
<CHECKNUM>106 | ||
<MEMO>TRANSFERENCIA PIX DES: Laboratório Hacker De 18/10 | ||
</STMTTRN> | ||
</BANKTRANLIST> | ||
<LEDGERBAL> | ||
<BALAMT>2000,00 | ||
<DTASOF>00000000 | ||
</LEDGERBAL> | ||
</STMTRS> | ||
</STMTTRNRS> | ||
</BANKMSGSRSV1> | ||
</OFX> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters