monkey-front-core 0.0.498 → 0.0.500

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.
@@ -753,8 +753,8 @@ class MonkeyEcxFormatCurrencyPipe {
753
753
  try {
754
754
  if (currency === 'CLP') {
755
755
  let fmt = this.currencyPipe.transform(value, '$', symbol, '1.0-0', locale);
756
- fmt = `${fmt}`.replace('$', '');
757
- return `${fmt} ${currency}`;
756
+ fmt = `${fmt}`.replace(/[^0-9,.]/g, '');
757
+ return `${fmt}${symbol !== '' ? ` ${currency}` : ''}`;
758
758
  }
759
759
  return this.currencyPipe.transform(value, currency, symbol, '', locale);
760
760
  }