Commit b0d6f49
committed
fix(localize): update the way to obtain the group separator for a number
four digit numbers can be written without separator, so it would be
safer to obtain the separator by formatting a five digit number. The bug
was found with the locale 'es-ES', where the format returned for '1000'
was '1000' instead of the expected '1.000'. We add the specific expect
clause on the test for it.
On branch fix/numberGroupSeparator
Changes to be committed:
modified: packages/localize/src/number/getGroupSeparator.js
modified: packages/localize/test/number/getGroupSeparator.test.js1 parent 2bf8c07 commit b0d6f49
File tree
2 files changed
+3
-2
lines changed- packages/localize
- src/number
- test/number
2 files changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
| 15 | + | |
| 16 | + | |
17 | 17 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
0 commit comments