Skip to content

Commit

Permalink
feat: add isChinesePhoneNumber
Browse files Browse the repository at this point in the history
  • Loading branch information
fjc0k committed Nov 2, 2018
1 parent 5afcf23 commit ddc3462
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 901 deletions.
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,8 @@
"tslint": "^5.11.0",
"typed-we-app": "^1.7.0-update.6",
"typescript": "^3.1.1"
},
"dependencies": {
"is-chinese-phone-number": "^0.1.7"
}
}
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export { default as inWechatWebview } from './inWechatWebview'
export { default as isArray } from './isArray'
export { default as isBoolean } from './isBoolean'
export { default as isChineseIDCardNumber } from './isChineseIDCardNumber'
export { default as isChinesePhoneNumber } from './isChinesePhoneNumber'
export { default as isDate } from './isDate'
export { default as isEqualArray } from './isEqualArray'
export { default as isFinite } from './isFinite'
Expand Down
3 changes: 3 additions & 0 deletions src/isChinesePhoneNumber.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import isChinesePhoneNumber from 'is-chinese-phone-number'

export default isChinesePhoneNumber
Loading

0 comments on commit ddc3462

Please sign in to comment.