diff --git a/src/utils/validate.js b/src/utils/validate.js index 3d1e2c4..78d9034 100644 --- a/src/utils/validate.js +++ b/src/utils/validate.js @@ -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) } /**