座机加区号

This commit is contained in:
zhaoxiao
2021-09-23 14:38:34 +08:00
parent 792c480de6
commit 8f2f18f9b6
+1 -1
View File
@@ -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)
}
/**