Determine whether it is a mobile number

From , 5 Years ago, written in JavaScript, viewed 222 times.
URL https://pastebin.vip/view/2da6cc4a
  1. function isPhone(val) {
  2.         if (!/^(((13[0-9]{1})|159|180|181|186|189|(15[0-9]{1}))+\d{8})$/.test(val)) {
  3.         return false;
  4.     } else {
  5.         return true;
  6.     }
  7. }

Reply to "Determine whether it is a mobile number"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website