mirror of
https://github.com/actualbudget/actual.git
synced 2026-04-29 19:14:22 -05:00
* fix(core): handle unicode minus in number parsing Fixes #6206. Added support for Unicode minus (U+2212) in looselyParseAmount, currencyToAmount, and stringToInteger. Added unit tests. * Refactor: Improve currency parsing logic Co-authored-by: matiss <matiss@mja.lv> * Refactor: Simplify currency parsing logic Co-authored-by: matiss <matiss@mja.lv> * [autofix.ci] apply automated fixes * fix: Handle Unicode minus inside parentheses correctly Fixed bug where amounts with both parentheses and Unicode minus (e.g., (−3.45)) were parsed as null instead of negative numbers. The Unicode minus is now removed from within parentheses before the parentheses-to-minus conversion, preventing double minus signs that caused parseFloat to return NaN. Added test cases for parenthesized amounts containing Unicode minus. * Add release notes for PR #6247 --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
127 B
127 B
category, authors
| category | authors | |
|---|---|---|
| Bugfix |
|
Fix number parsing to recognize Unicode minus as a valid negative indicator.