diff --git a/src/mailgo.ts b/src/mailgo.ts index 405a6bf..3bb8a72 100644 --- a/src/mailgo.ts +++ b/src/mailgo.ts @@ -924,7 +924,7 @@ const validateEmails = (arr: string[]): boolean => arr.every(validateEmail); // validate a single tel with regex const validateTel = (tel: string): boolean => - /^[+]*[(]{0,1}[0-9]{1,4}[)]{0,1}[-\s\./0-9]*$/.test(tel); + /^[+]{0,1}[\s0-9]{0,}[(]{0,1}[0-9]{1,4}[)]{0,1}[-\s\./0-9]*$/.test(tel); // copy of a string const copyToClipboard = (str: string): boolean => {