Skip to content

Commit

Permalink
Fixed expect null as zero (adamwdraper#681)
Browse files Browse the repository at this point in the history
  • Loading branch information
SMahdiFaghih committed Dec 13, 2020
1 parent 7de892f commit 343a976
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/numeral.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@

if (numeral.isNumeral(input)) {
value = input.value();
} else if (input === 0 || typeof input === 'undefined') {
} else if (input === 0 || typeof input === 'undefined' || input == "") {
value = 0;
} else if (input === null || _.isNaN(input)) {
value = null;
Expand Down

0 comments on commit 343a976

Please sign in to comment.