[PR #2588] [MERGED] Allow 5 decimal places in file import parser #34582

Closed
opened 2026-04-20 21:43:44 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/2588
Author: @youngcw
Created: 4/11/2024
Status: Merged
Merged: 4/12/2024
Merged by: @youngcw

Base: masterHead: youngcw/csv-parse-allow-5-decimal


📝 Commits (4)

📊 Changes

3 files changed (+15 additions, -6 deletions)

View changed files

📝 packages/loot-core/src/shared/util.test.ts (+6 -5)
📝 packages/loot-core/src/shared/util.ts (+3 -1)
upcoming-release-notes/2588.md (+6 -0)

📄 Description

I updated the file import amount parser a bit ago to only allow 2 decimal places. The point of that was to not accidentally set something as decimal when a number didn't include any decimal amount.

This PR adjusts the parser to allow 5 or 1-2 digits after the decimal marker. This way files that use the finance-y format of 5 decimal places work.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/actualbudget/actual/pull/2588 **Author:** [@youngcw](https://github.com/youngcw) **Created:** 4/11/2024 **Status:** ✅ Merged **Merged:** 4/12/2024 **Merged by:** [@youngcw](https://github.com/youngcw) **Base:** `master` ← **Head:** `youngcw/csv-parse-allow-5-decimal` --- ### 📝 Commits (4) - [`9f52f27`](https://github.com/actualbudget/actual/commit/9f52f27c27e93cfe5540e0e86caf51a808758f03) allow specifically 5 decimal places in parser - [`e22833b`](https://github.com/actualbudget/actual/commit/e22833be65491c94daffc6008af0453d820efe12) note - [`b07e26e`](https://github.com/actualbudget/actual/commit/b07e26e7150e67b7983a9d34f348c1250f96b6e3) update tests - [`92c8219`](https://github.com/actualbudget/actual/commit/92c82190ea48d26d0054def8b2d6a035e44c17dc) lint ### 📊 Changes **3 files changed** (+15 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `packages/loot-core/src/shared/util.test.ts` (+6 -5) 📝 `packages/loot-core/src/shared/util.ts` (+3 -1) ➕ `upcoming-release-notes/2588.md` (+6 -0) </details> ### 📄 Description I updated the file import amount parser a bit ago to only allow 2 decimal places. The point of that was to not accidentally set something as decimal when a number didn't include any decimal amount. This PR adjusts the parser to allow 5 or 1-2 digits after the decimal marker. This way files that use the finance-y format of 5 decimal places work. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-20 21:43:44 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#34582