[open-ils-commits] r14324 - trunk/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:23 EDT 2009


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

Modified:
   trunk/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: trunk/Open-ILS/xul/staff_client/server/patron/ue_config.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/ue_config.js	2009-10-08 21:44:11 UTC (rev 14323)
+++ trunk/Open-ILS/xul/staff_client/server/patron/ue_config.js	2009-10-09 12:49:21 UTC (rev 14324)
@@ -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