OAuth OK!
This commit is contained in:
parent
494a840f70
commit
567e4a6635
382 changed files with 52478 additions and 7572 deletions
4
testOauthClient/wwwroot/lib/jquery-validation/src/additional/postcodeUK.js
vendored
Normal file
4
testOauthClient/wwwroot/lib/jquery-validation/src/additional/postcodeUK.js
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
// Matches UK postcode. Does not match to UK Channel Islands that have their own postcodes (non standard UK)
|
||||
$.validator.addMethod("postcodeUK", function(value, element) {
|
||||
return this.optional(element) || /^((([A-PR-UWYZ][0-9])|([A-PR-UWYZ][0-9][0-9])|([A-PR-UWYZ][A-HK-Y][0-9])|([A-PR-UWYZ][A-HK-Y][0-9][0-9])|([A-PR-UWYZ][0-9][A-HJKSTUW])|([A-PR-UWYZ][A-HK-Y][0-9][ABEHMNPRVWXY]))\s?([0-9][ABD-HJLNP-UW-Z]{2})|(GIR)\s?(0AA))$/i.test(value);
|
||||
}, "Please specify a valid UK postcode");
|
||||
Loading…
Add table
Add a link
Reference in a new issue