OAuth OK!
This commit is contained in:
parent
494a840f70
commit
567e4a6635
382 changed files with 52478 additions and 7572 deletions
16
testOauthClient/wwwroot/lib/jquery-validation/src/additional/postalCodeCA.js
vendored
Normal file
16
testOauthClient/wwwroot/lib/jquery-validation/src/additional/postalCodeCA.js
vendored
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
/**
|
||||
* Matches a valid Canadian Postal Code
|
||||
*
|
||||
* @example jQuery.validator.methods.postalCodeCA( "H0H 0H0", element )
|
||||
* @result true
|
||||
*
|
||||
* @example jQuery.validator.methods.postalCodeCA( "H0H0H0", element )
|
||||
* @result false
|
||||
*
|
||||
* @name jQuery.validator.methods.postalCodeCA
|
||||
* @type Boolean
|
||||
* @cat Plugins/Validate/Methods
|
||||
*/
|
||||
$.validator.addMethod( "postalCodeCA", function( value, element ) {
|
||||
return this.optional( element ) || /^[ABCEGHJKLMNPRSTVXY]\d[A-Z] \d[A-Z]\d$/.test( value );
|
||||
}, "Please specify a valid postal code" );
|
||||
Loading…
Add table
Add a link
Reference in a new issue