Skip to content

Instantly share code, notes, and snippets.

@0632347878
Last active March 30, 2020 09:39
Show Gist options
  • Save 0632347878/04545fd601a9993e12879c1bb05fb0d0 to your computer and use it in GitHub Desktop.
Save 0632347878/04545fd601a9993e12879c1bb05fb0d0 to your computer and use it in GitHub Desktop.
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