[open-ils-commits] r15056 - trunk/Open-ILS/xul/staff_client/server/patron (dbs)

svn at svn.open-ils.org svn at svn.open-ils.org
Wed Dec 2 11:22:37 EST 2009


Author: dbs
Date: 2009-12-02 11:22:34 -0500 (Wed, 02 Dec 2009)
New Revision: 15056

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

Modified: trunk/Open-ILS/xul/staff_client/server/patron/ue_config.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/ue_config.js	2009-12-02 15:30:30 UTC (rev 15055)
+++ trunk/Open-ILS/xul/staff_client/server/patron/ue_config.js	2009-12-02 16:22:34 UTC (rev 15056)
@@ -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