Comparing version 2.3.10 to 2.3.11
@@ -502,3 +502,3 @@ "use strict"; | ||
if (decimalsFormat === void 0) { decimalsFormat = 2; } | ||
if (!numberValue) { | ||
if (!numberValue && numberValue !== 0) { | ||
return ''; | ||
@@ -505,0 +505,0 @@ } |
@@ -151,2 +151,4 @@ "use strict"; | ||
chai_1.expect(index_1.maskBr.currency(currencyNumberBig)).to.be.equal('R$ 1.239.999.999,99'); | ||
chai_1.expect(index_1.maskBr.currency(0)).to.be.equal('R$ 0,00'); | ||
chai_1.expect(index_1.maskBr.currency(25.5)).to.be.equal('R$ 25,50'); | ||
}); | ||
@@ -153,0 +155,0 @@ it('PIS/PASEP', function () { |
{ | ||
"name": "js-brasil", | ||
"version": "2.3.10", | ||
"version": "2.3.11", | ||
"description": "Javascript Utils para Brasil (cpf, cnpj...)", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -559,3 +559,3 @@ import { isArray, processCaretTraps, getSpecialProperty } from './utils'; | ||
function formatNumber(maskType: any, numberValue: any, decimalsFormat: number = 2) { | ||
if (!numberValue) { | ||
if (!numberValue && numberValue!==0) { | ||
return ''; | ||
@@ -562,0 +562,0 @@ } |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
1481135
28286