diff options
author | Pjotr Prins | 2018-04-06 11:33:16 +0000 |
---|---|---|
committer | Pjotr Prins | 2018-04-06 11:33:16 +0000 |
commit | c9a4c0970b4d6f626fd9eeba048322b22eb601c1 (patch) | |
tree | 383adb36e30c7006cb891a6eebdc0d57a707f872 /wqflask/wqflask/static/new/packages/ValidationPlugin/src/additional/postalCodeCA.js | |
parent | 1debb0849066a31c8538b529536a9a7a12a0a8f9 (diff) | |
download | genenetwork2-c9a4c0970b4d6f626fd9eeba048322b22eb601c1.tar.gz |
Removing use ValidationPlugin. See https://github.com/genenetwork/genenetwork2/issues/310
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" ); |