Make ynab export equivalent to original export #21

Merged
jacob1123 merged 7 commits from ynab-export-fixes into master 2022-02-25 16:35:18 +01:00
Showing only changes of commit f9e512c593 - Show all commits

View File

@ -129,7 +129,7 @@ func (n Numeric) String() string {
exp = -exp
for length <= exp {
bytes = append(bytes, byte('0'))
bytes = append([]byte{byte('0')}, bytes...)
length++
}
@ -166,7 +166,7 @@ func (n Numeric) MarshalJSON() ([]byte, error) {
exp = -exp
for length <= exp {
bytes = append(bytes, byte('0'))
bytes = append([]byte{byte('0')}, bytes...)
length++
}