|
|
@@ -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.1-dev, built on 2014-08-09 8:30:11 AM
|
|
|
+ * @version v0.5.1-dev, built on 2014-08-09 9:16:02 AM
|
|
|
* @author https://twitter.com/nghuuphuoc
|
|
|
* @copyright (c) 2013 - 2014 Nguyen Huu Phuoc
|
|
|
* @license MIT
|
|
|
@@ -4532,6 +4532,7 @@
|
|
|
FR: 'France',
|
|
|
GB: 'United Kingdom',
|
|
|
MA: 'Morocco',
|
|
|
+ PK: 'Pakistan',
|
|
|
US: 'USA'
|
|
|
}
|
|
|
});
|
|
|
@@ -4543,7 +4544,7 @@
|
|
|
},
|
|
|
|
|
|
// The supported countries
|
|
|
- COUNTRY_CODES: ['BR', 'ES', 'FR', 'GB', 'MA', 'US'],
|
|
|
+ COUNTRY_CODES: ['BR', 'ES', 'FR', 'GB', 'MA', 'PK', 'US'],
|
|
|
|
|
|
/**
|
|
|
* Return true if the input value contains a valid phone number for the country
|
|
|
@@ -4614,6 +4615,12 @@
|
|
|
isValid = (/^(?:(?:(?:\+|00)212[\s]?(?:[\s]?\(0\)[\s]?)?)|0){1}(?:5[\s.-]?[2-3]|6[\s.-]?[13-9]){1}[0-9]{1}(?:[\s.-]?\d{2}){3}$/).test(value);
|
|
|
break;
|
|
|
|
|
|
+ case 'PK':
|
|
|
+ // http://regex101.com/r/yH8aV9/2
|
|
|
+ value = $.trim(value);
|
|
|
+ isValid = (/^0?3[0-9]{2}[0-9]{7}$/).test(value);
|
|
|
+ break;
|
|
|
+
|
|
|
case 'US':
|
|
|
/* falls through */
|
|
|
default:
|