座机加区号
This commit is contained in:
@@ -12,7 +12,7 @@ export function isEmail(s) {
|
||||
* @param {*} s
|
||||
*/
|
||||
export function isPhone(s) {
|
||||
return /^([0-9]{3,4}-)?[0-9]{7,8}$/.test(s)
|
||||
return /^([0-9]{3,4}-)[0-9]{7,8}$/.test(s)
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user