diff options
Diffstat (limited to 'wqflask/wqflask/static/new/packages/ValidationPlugin/src/additional/postalCodeCA.js')
-rw-r--r-- | wqflask/wqflask/static/new/packages/ValidationPlugin/src/additional/postalCodeCA.js | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/wqflask/wqflask/static/new/packages/ValidationPlugin/src/additional/postalCodeCA.js b/wqflask/wqflask/static/new/packages/ValidationPlugin/src/additional/postalCodeCA.js deleted file mode 100644 index 976b316c..00000000 --- a/wqflask/wqflask/static/new/packages/ValidationPlugin/src/additional/postalCodeCA.js +++ /dev/null @@ -1,16 +0,0 @@ -/** - * 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" ); |