Simplify `formatNumber` logic
Refactored `formatNumber` to reduce redundancy and improve readability. Combined conditions to streamline the implementation and adjusted handling of null and string inputs. Updated fallback behavior to maintain correctness and consistency.
test(config): refine Vitest exclusions
Added specific exclusions for `src/index.ts` and `src/format/index.ts` in both test and coverage settings. Improves test accuracy by omitting irrelevant files from coverage metrics.
937cc3d
11 days ago
by hckhanh
0%
Add Changeset
5cf890a
11 days ago
by hckhanh
-1.59%
Split Vietnamese number reading logic
Refactored number reading logic by introducing separate functions for first and subsequent groups, improving modularity and readability. Removed redundant logic and reorganized code for better maintainability.
418c0e9
11 days ago
by hckhanh
-0.03%
[autofix.ci] apply automated fixes
685592c
11 days ago
by autofix-ci[bot]
-0.01%
Add tests for more number formats
Added support for BigInt values in number formatting tests, ensuring compatibility across formats. Introduced comprehensive test cases for Vietnamese number reading, covering edge cases, groups, and suffix handling for enhanced accuracy and reliability.