Skip to content

Commit

Permalink
rm check for flags.number in isNumber func
Browse files Browse the repository at this point in the history
  • Loading branch information
lrlna committed Feb 14, 2016
1 parent 1860ee6 commit 24b9f9d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion index.js
Expand Up @@ -555,7 +555,6 @@ function parse (args, opts) {
}

function isNumber (x) {
if (flags.numbers && flags.numbers[x] && !isNaN(x)) return true
if (!configuration['parse-numbers']) return false
if (typeof x === 'number') return true
if (/^0x[0-9a-f]+$/i.test(x)) return true
Expand Down

0 comments on commit 24b9f9d

Please sign in to comment.