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

svn at svn.open-ils.org svn at svn.open-ils.org
Wed Dec 2 11:24:54 EST 2009


Author: dbs
Date: 2009-12-02 11:24:51 -0500 (Wed, 02 Dec 2009)
New Revision: 15057

Modified:
   branches/rel_1_6/Open-ILS/xul/staff_client/server/patron/ue_config.js
Log:
Apply patch from Dan Wells to correct nonumRegex

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-12-02 16:22:34 UTC (rev 15056)
+++ branches/rel_1_6/Open-ILS/xul/staff_client/server/patron/ue_config.js	2009-12-02 16:24:51 UTC (rev 15057)
@@ -32,7 +32,7 @@
 const ssnRegex		= /^\d{3}-\d{2}-\d{4}$/;
 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 nonumRegex	= /^[^\d\s]\D*$/; /* no numbers, no beginning whitespace */
 const dateRegex	= /^\d{4}-\d{2}-\d{2}/;
 const zipRegex		= /^\d{5}(-\d{4}|-?$)|(^[ABCEGHJKLMNPRSTVXY]{1}\d{1}[A-Z]{1} *\d{1}[A-Z]{1}\d{1}$)/;
 



More information about the open-ils-commits mailing list