Skip to content

Commit

Permalink
Fail on input before parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
DeviaVir authored Dec 19, 2017
1 parent 11a9605 commit 5cf575c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions numbro.js
Original file line number Diff line number Diff line change
Expand Up @@ -1108,6 +1108,7 @@
* finite precision.
*/
function multiplier(x) {
if (!x) return 1;
var parts = x.toString().split('.');
if (parts.length < 2) {
return 1;
Expand Down

0 comments on commit 5cf575c

Please sign in to comment.