Created
July 16, 2018 06:48
-
-
Save itaymesh/97f4d8832505e8932b57f4f91e07080a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"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