import{validateString as e}from"./validateString.mjs";const t=(t,n=`Phone`,r=6,i=20)=>{let a=e(t,n,r,i);return typeof t==`string`&&!/^\+?\(?\d{3}\)?[-\s.]?\d{3}[-\s.]?\d{4,6}$/.test(t)&&a.push(`${n} must be a valid phone number.`),a};export{t as validatePhone};
//# sourceMappingURL=validatePhone.mjs.map