mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-12-06 17:27:59 +00:00
Check for null in isNumber
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user