Last active
March 30, 2020 09:39
-
-
Save 0632347878/04545fd601a9993e12879c1bb05fb0d0 to your computer and use it in GitHub Desktop.
This file contains 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
case 1 | |
// console.log(value.slice(5, 7)); | |
// if(value.slice(5, 7).includes('67'||'96'||'97'||'68'||'98'||'39'||'50'||'99'||'66'||'95'||'63'||'93'||'73')) { | |
// console.log('yyyyyyyyyyyyyyyyes'); | |
// } | |
case 2 | |
var re = /\+38\(0(50|63|66|67|68|73|91|92|93|94|95|96|97|98|99)\)-\d{3}(-\d{2})(-\d{2})/; | |
re.test('+38(050)-234-78-78'); | |
if(re.test(value)) return true; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment