Comparing version 1.2.0 to 1.2.1
@@ -91,6 +91,7 @@ 'use strict'; | ||
var _amount = amount || 0; | ||
var _currency = currency || 'CHF'; | ||
var stdAmount = _amount.toLocaleString('en-US', { minimumFractionDigits: settings.digitsNo }).replace(',', stdThSep).replace('.', stdDecSep); | ||
return _currency + ' ' + stdAmount.replace(stdThSep, settings.thousandSep).replace(stdDecSep, settings.decimalSep); | ||
return [currency, stdAmount.replace(stdThSep, settings.thousandSep).replace(stdDecSep, settings.decimalSep)].filter(function (x) { | ||
return !!x; | ||
}).join(' '); | ||
} | ||
@@ -97,0 +98,0 @@ |
{ | ||
"name": "cultura", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "formatting dates and numbers according to os settings", | ||
@@ -5,0 +5,0 @@ "engine": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9839
118