[open-ils-commits] r7610 -
trunk/Evergreen/xul/staff_client/server/patron
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Jul 31 13:47:48 EDT 2007
Author: erickson
Date: 2007-07-31 13:45:58 -0400 (Tue, 31 Jul 2007)
New Revision: 7610
Modified:
trunk/Evergreen/xul/staff_client/server/patron/ue_config.js
Log:
changed default phone regex to allow arbitrary characters after the number
Modified: trunk/Evergreen/xul/staff_client/server/patron/ue_config.js
===================================================================
--- trunk/Evergreen/xul/staff_client/server/patron/ue_config.js 2007-07-27 19:12:06 UTC (rev 7609)
+++ trunk/Evergreen/xul/staff_client/server/patron/ue_config.js 2007-07-31 17:45:58 UTC (rev 7610)
@@ -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