[open-ils-commits] r7612 - branches/rel_1_2/Evergreen/xul/staff_client/server/patron

svn at svn.open-ils.org svn at svn.open-ils.org
Tue Jul 31 13:55:36 EDT 2007


Author: erickson
Date: 2007-07-31 13:53:46 -0400 (Tue, 31 Jul 2007)
New Revision: 7612

Modified:
   branches/rel_1_2/Evergreen/xul/staff_client/server/patron/ue_config.js
Log:
back-porting less restrictive phone regex

Modified: branches/rel_1_2/Evergreen/xul/staff_client/server/patron/ue_config.js
===================================================================
--- branches/rel_1_2/Evergreen/xul/staff_client/server/patron/ue_config.js	2007-07-31 17:51:03 UTC (rev 7611)
+++ branches/rel_1_2/Evergreen/xul/staff_client/server/patron/ue_config.js	2007-07-31 17:53:46 UTC (rev 7612)
@@ -27,7 +27,7 @@
 const unameRegex	= /^\w[\.\w\@-]*$/;
 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}(| ex\d+)$/i;
+const phoneRegex	= /^\d{3}-\d{3}-\d{4}(| \S+.*)$/i;
 const nonumRegex	= /^[a-zA-Z]\D*$/; /* no numbers, no beginning whitespace */
 const dateRegex	= /^\d{4}-\d{2}-\d{2}/;
 const zipRegex		= /^\d{5}(-\d{4}|-?$)/; /* 12345 or 12345-6789 */



More information about the open-ils-commits mailing list