UNPKG

diana

Version:
6 lines 239 B
"use strict"; function isPhoneNum(phoneNum) { return /^(0|86|17951)?(13[0-9]|15[012356789]|16[0-9]|17[0-9]|18[0-9]|14[0-9]|19[0-9])[0-9]{8}$/.test(String(phoneNum)); } module.exports = isPhoneNum; //# sourceMappingURL=isPhoneNum.js.map