Skip to content
This repository has been archived by the owner on Nov 16, 2018. It is now read-only.

Commit

Permalink
Removed un needed check of sanitized values
Browse files Browse the repository at this point in the history
  • Loading branch information
dhershman1 committed Sep 6, 2018
1 parent feba136 commit 11e7e89
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"build:split": "rollup -c rollup.split.js",
"test": "tape -r esm tests/*.js | tap-spec",
"test:cov": "nyc npm test",
"cov": "nyc --reporter=html npm test",
"coverage": "nyc report --reporter=text-lcov | coveralls",
"lint": "standard --fix src/*.js"
},
Expand Down
4 changes: 0 additions & 4 deletions src/number.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ import getCardType from './_internals/getCardType'
import typeCheck from './_internals/typeCheck'

const luhnChk = value => {
if (/[^0-9-\s]+/.test(value)) {
return false
}

const numArr = [0, 2, 4, 6, 8, 1, 3, 5, 7, 9]
let len = value.length
let bit = 1
Expand Down

0 comments on commit 11e7e89

Please sign in to comment.