diff --git a/index.js b/index.js index 796dba4..ae4ffd4 100644 --- a/index.js +++ b/index.js @@ -12,7 +12,7 @@ ranges = ranges.map(function(range) { }) // flatten -ranges = [].concat.apply([], [expand('a..z'), expand('A..Z'), expand('0..9')]) +ranges = [].concat.apply([], ranges || [expand('a..z'), expand('A..Z'), expand('0..9')]) console.log('Using chars:', ranges.join(' ')) hash = hash.toLocaleLowerCase().replace('*','')