Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: parse decimals without whole portion #53

Merged
merged 2 commits into from
Nov 10, 2023
Merged

Conversation

jrick
Copy link
Contributor

@jrick jrick commented Nov 10, 2023

When an transaction entry contains a decimal amount with no whole portion specified, assume the whole part is zero.

This avoids creating additional accounts from misparsed transactions, where the account name otherwise contained the decimal portion at the end.

When an transaction entry contains a decimal amount with no whole portion
specified, assume the whole part is zero.

This avoids creating additional accounts from misparsed transactions, where
the account name otherwise contained the decimal portion at the end.
@howeyc
Copy link
Owner

howeyc commented Nov 10, 2023

I'm good with the change, but what about something like "-.34", should that be handled?

@jrick
Copy link
Contributor Author

jrick commented Nov 10, 2023

Yes, that seems reasonable as well.

@howeyc howeyc merged commit d3041fc into howeyc:master Nov 10, 2023
2 checks passed
@jrick jrick deleted the missingwhole branch November 10, 2023 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants