@qlibs/utils 1.5.4 → 1.5.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -89,12 +89,12 @@ function parseFormattedNumber(formattedString, locale = 'id-ID', currency) {
89
89
  ? currency
90
90
  ? uniqueSeparators[1]
91
91
  : uniqueSeparators[0]
92
- : ',';
92
+ : uniqueSeparators[0] || ',';
93
93
  const decimalSeparator = uniqueSeparators.length > 1
94
94
  ? currency
95
95
  ? uniqueSeparators[2]
96
96
  : uniqueSeparators[1]
97
- : '.';
97
+ : uniqueSeparators[1] || '.';
98
98
  const isNegative = formattedString.includes('-');
99
99
  let normalizedString = formattedString.replace(/[^\d.,]/g, '');
100
100
  const thousandSeparatorRegex = new RegExp(`[\\${thousandSeparator}\\s]`, 'g');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qlibs/utils",
3
- "version": "1.5.4",
3
+ "version": "1.5.5",
4
4
  "description": "",
5
5
  "author": "QBIT Developer",
6
6
  "license": "MIT",