regvalidator
v1.2.0
Published
this is a Regular tool
Downloads
5
Readme
介绍
通过UMD方式定义一个正则模块, 校验手机号和邮箱的功能 匹配成功返回true 失败返回false
安装
npm i regvalidator
使用
const regvalidator = require('./validator.js')
console.log(regvalidator.isPhone('13112112341')); //true
console.log(regvalidator.isEmail('[email protected]')); //true
console.log(regvalidator.isEmail('131.@12112341')); //false