changed default phone regex to allow arbitrary characters after the number
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 31 Jul 2007 17:45:58 +0000 (17:45 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 31 Jul 2007 17:45:58 +0000 (17:45 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@7610 dcc99617-32d9-48b4-a31d-7c20da2025e4

Evergreen/xul/staff_client/server/patron/ue_config.js

index dc80e18..18acd0d 100644 (file)
@@ -27,7 +27,7 @@ const wordRegex       = /^[\w-]+$/;
 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 */