Split out zipcodeUS

This commit is contained in:
Nick Schonning
2013-03-22 20:15:15 -04:00
committed by Jörn Zaefferer
parent f05f621156
commit 3153cfcd1a
2 changed files with 3 additions and 4 deletions

View File

@@ -33,10 +33,6 @@
}());
jQuery.validator.addMethod("zipcodeUS", function(value, element) {
return this.optional(element) || /^\d{5}-\d{4}$|^\d{5}$/.test(value);
}, "The specified US ZIP Code is invalid");
jQuery.validator.addMethod("integer", function(value, element) {
return this.optional(element) || /^-?\d+$/.test(value);
}, "A positive or negative non-decimal number please");