Permalink
Browse files

Fixing a bug with the zip code requiring the 4 digit ending.

The 4 digit part of the zip is optional.
  • Loading branch information...
Zoramite committed Apr 12, 2012
1 parent 2244ddb commit f5cdf922c43dfd9f60283487acbe7420ec826454
Showing with 1 addition and 1 deletion.
  1. +1 −1 jquery.ziptastic.js
View
@@ -1,7 +1,7 @@
(function( $ ) {
var requests = {};
var zipValid = {
- us: /[0-9]{5}(-[0-9]{4})/
+ us: /[0-9]{5}(-[0-9]{4})?/
};
$.ziptastic = function(zip, callback){

0 comments on commit f5cdf92

Please sign in to comment.