Skip to content

Commit

Permalink
fix default ranges
Browse files Browse the repository at this point in the history
  • Loading branch information
ekoeryanto committed Jun 14, 2017
1 parent 3002063 commit ad9fbdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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('*','')

Expand Down

0 comments on commit ad9fbdc

Please sign in to comment.