[open-ils-commits] r14325 - branches/rel_1_6/Open-ILS/xul/staff_client/server/patron (erickson)

svn at svn.open-ils.org svn at svn.open-ils.org
Fri Oct 9 08:49:39 EDT 2009


Author: erickson
Date: 2009-10-09 08:49:38 -0400 (Fri, 09 Oct 2009)
New Revision: 14325

Modified:
   branches/rel_1_6/Open-ILS/xul/staff_client/server/patron/ue_config.js
Log:
until a more flexible solution exists, make the default zip regex in the old-school patron editor Canada-friendly by default

Modified: branches/rel_1_6/Open-ILS/xul/staff_client/server/patron/ue_config.js
===================================================================
--- branches/rel_1_6/Open-ILS/xul/staff_client/server/patron/ue_config.js	2009-10-09 12:49:21 UTC (rev 14324)
+++ branches/rel_1_6/Open-ILS/xul/staff_client/server/patron/ue_config.js	2009-10-09 12:49:38 UTC (rev 14325)
@@ -34,7 +34,7 @@
 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;
 



More information about the open-ils-commits mailing list