@jswork/next-is-phone
Version:
Regexp for is phone.
9 lines • 425 B
JavaScript
/*!
* name: @jswork/next-is-phone
* description: Regexp for is phone.
* homepage: https://github.com/afeiship/next-is-phone
* version: 1.0.0
* date: 2020-11-21 09:09:36
* license: MIT
*/
!function(){var e=(this||window||Function("return this")()).nx||require("@jswork/next"),n=/^1[345789]\d{9}$/;e.isPhone=function(e){return n.test(String(e))},"undefined"!=typeof module&&module.exports&&(module.exports=e.isPhone)}();