until a more flexible solution exists, make the default zip regex in the old-school...
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 9 Oct 2009 12:49:21 +0000 (12:49 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 9 Oct 2009 12:49:21 +0000 (12:49 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@14324 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/patron/ue_config.js

index e4c3fd4..925a99e 100644 (file)
@@ -34,7 +34,7 @@ const dlRegex         = /^[a-zA-Z]{2}-\w+/; /* driver's license */
 const phoneRegex       = /^\d{3}-\d{3}-\d{4}(| \S+.*)$/i;
 const nonumRegex       = /^[^\d\s]+[\d]*$/; /* no numbers, no beginning whitespace */
 const dateRegex        = /^\d{4}-\d{2}-\d{2}/;
-const zipRegex         = /^\d{5}(-\d{4}|-?$)/; /* 12345 or 12345-6789 */
+const zipRegex         = /^\d{5}(-\d{4}|-?$)|(^[ABCEGHJKLMNPRSTVXY]{1}\d{1}[A-Z]{1} *\d{1}[A-Z]{1}\d{1}$)/;
 
 var barredAlerted = false;