react-currency-input-field
react-currency-input-field copied to clipboard
fix: parse float for currencies w/o decimal sep
- Replace the decimal separator from value only when the former is not an empty string. Otherwise,
'1'.replace('', '.')
returns.1
. - Allow tests to be run from machines which have different locales. The reason is that Intl.NumberFormat constructor falls back to the machine's LANG.