Commit 1ac8a66
fix: strip trailing .0 in formatCompactCurrency for consistent cross-environment output
Fixes CI test failure where Intl.NumberFormat produced "$150.0K" instead of "$150K"
in certain Node.js/ICU versions. The regex strips trailing ".0" before compact suffixes
(K/M/B/T) while preserving meaningful decimals like "$1.5M".
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>1 parent 0f5c119 commit 1ac8a66
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
| 83 | + | |
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
89 | 92 | | |
90 | 93 | | |
91 | 94 | | |
| |||
0 commit comments