From: erickson Date: Tue, 31 Jul 2007 17:53:46 +0000 (+0000) Subject: back-porting less restrictive phone regex X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=b02ca2ee9738167f2515dfa8bdc2efd555067c53;p=Evergreen.git back-porting less restrictive phone regex git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_2@7612 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Evergreen/xul/staff_client/server/patron/ue_config.js b/Evergreen/xul/staff_client/server/patron/ue_config.js index dc80e1802a..e540314ac9 100644 --- a/Evergreen/xul/staff_client/server/patron/ue_config.js +++ b/Evergreen/xul/staff_client/server/patron/ue_config.js @@ -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 */