|
|
@@ -2,7 +2,7 @@
|
|
|
* BootstrapValidator (http://bootstrapvalidator.com)
|
|
|
* The best jQuery plugin to validate form fields. Designed to use with Bootstrap 3
|
|
|
*
|
|
|
- * @version v0.5.2-dev, built on 2014-09-06 1:12:02 PM
|
|
|
+ * @version v0.5.2-dev, built on 2014-09-06 1:37:36 PM
|
|
|
* @author https://twitter.com/nghuuphuoc
|
|
|
* @copyright (c) 2013 - 2014 Nguyen Huu Phuoc
|
|
|
* @license MIT
|
|
|
@@ -4779,7 +4779,8 @@
|
|
|
PK: 'Pakistan',
|
|
|
RO: 'Romania',
|
|
|
TH: 'Thailand',
|
|
|
- US: 'USA'
|
|
|
+ US: 'USA',
|
|
|
+ VE: 'Venezuela'
|
|
|
}
|
|
|
});
|
|
|
|
|
|
@@ -4790,7 +4791,7 @@
|
|
|
},
|
|
|
|
|
|
// The supported countries
|
|
|
- COUNTRY_CODES: ['BR', 'CN', 'DK', 'ES', 'FR', 'GB', 'MA', 'PK', 'RO', 'TH', 'US'],
|
|
|
+ COUNTRY_CODES: ['BR', 'CN', 'DK', 'ES', 'FR', 'GB', 'MA', 'PK', 'RO', 'TH', 'US', 'VE'],
|
|
|
|
|
|
/**
|
|
|
* Return true if the input value contains a valid phone number for the country
|
|
|
@@ -4892,6 +4893,12 @@
|
|
|
isValid = (/^0\(?([6|8-9]{2})*-([0-9]{3})*-([0-9]{4})$/).test(value);
|
|
|
break;
|
|
|
|
|
|
+ case 'VE':
|
|
|
+ // http://regex101.com/r/eM2yY0/6
|
|
|
+ value = $.trim(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':
|
|
|
/* falls through */
|
|
|
default:
|