Devendra174's picture
Upload folder using huggingface_hub
f5071ca verified
export const validEmailAndPhoneNumber = input => {
const phoneRegex = /^\d{10}$/ // eslint-disable-next-line
const emailRegex = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/
return input.match(phoneRegex) || input.match(emailRegex)
}