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(foldtext): handle negative balance assertions (#165) #166

Merged
merged 1 commit into from
Jan 28, 2025

Conversation

jmtd
Copy link
Contributor

@jmtd jmtd commented Jan 27, 2025

Further expand the regular expressions to match optional balance assertions to catch negative balance assertions.

Amounts can be signed with a negative symbol, or a positive one; the currency symbol and a sign symbol can be in either order: https://hledger.org/1.41/hledger.html#amounts

Add a test ledger under test/ to demonstrate some of the combinations.

Fixes: #165

Further expand the regular expressions to match optional balance
assertions to catch negative balance assertions.

Amounts can be signed with a negative symbol, or a positive one;
the currency symbol and a sign symbol can be in either order:
https://hledger.org/1.41/hledger.html#amounts

Add a test ledger under test/ to demonstrate some of the
combinations.

Signed-off-by: Jonathan Dowland <jon@dow.land>
@alerque alerque merged commit aabf197 into ledger:master Jan 28, 2025
3 of 5 checks passed
@jmtd jmtd deleted the foldtext-negative-asserts branch January 29, 2025 11:38
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.

foldtext and negative balance assertions
2 participants