Browse Source

Fixed regex for match allowed prefixed numbers on Venezuela

ReynierPM 11 years ago
parent
commit
29245e3a52
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/js/validator/phone.js

+ 2 - 2
src/js/validator/phone.js

@@ -100,9 +100,9 @@
                     break;
 
                 case 'VE':
-                    // http://regex101.com/r/lR6hT5/1
+                    // http://regex101.com/r/eM2yY0/3
                     value   = $.trim(value);
-                    isValid = (/^0[0-9]{10}$/).test(value);
+                    isValid = (/^0(?:2(?:12|4[0-9]|5[1-9]|6[0-9]|7[0-8]|8[1-35-8]|9[1-5]|3[45789])|4(?:1[246]|2[46]))\d{7}$/).test(value);
                     break;
 
                 case 'US':