react-currency-input-field icon indicating copy to clipboard operation
react-currency-input-field copied to clipboard

fix: parse float for currencies w/o decimal sep

Open sienic opened this issue 1 year ago • 0 comments

  • 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.

sienic avatar Sep 29 '22 17:09 sienic