Check for null in isNumber

This commit is contained in:
Chris Clark
2015-02-03 18:23:18 -08:00
parent c8f18c8c85
commit b86790c854

View File

@@ -467,7 +467,7 @@ Amount.prototype.parse_human = function(j, opts) {
var words = j.split(' ').filter(function(word) { return word !== ''; });
function isNumber(s) {
return isFinite(s) && s !== '';
return isFinite(s) && s !== '' && s !== null;
}
if (words.length === 1) {