Skip to content

Instantly share code, notes, and snippets.

@itaymesh
Created July 16, 2018 06:48
Show Gist options
  • Save itaymesh/97f4d8832505e8932b57f4f91e07080a to your computer and use it in GitHub Desktop.
Save itaymesh/97f4d8832505e8932b57f4f91e07080a to your computer and use it in GitHub Desktop.
"validate-israeli-phone-number": [
function (value) {
return /^(?:(?:(?:\s|\.|-)?)|(0[23489]{1})|(0[57]{1}[0-9]))?([^0\D]{1}\d{2}(?:\s|\.|-)?\d{4})$/i.test(value)
},
$t('Please enter a phone number without hyphens and spaces')
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment