u
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
module.exports = {
|
||||
CN: /^1\d{10}$/,
|
||||
SG: /^[89]\d{7}$/,
|
||||
US: /^\d{10}$/,
|
||||
JP: /^\d{10}$/,
|
||||
validatePhone ({ phone } = {}) {
|
||||
try {
|
||||
let [fullphone, areacode, callnumber] = /^\+(\d{1,3})-(\d{7,11})$/.exec(phone)
|
||||
|
||||
Reference in New Issue
Block a user