From: dbs Date: Wed, 2 Dec 2009 16:24:51 +0000 (+0000) Subject: Apply patch from Dan Wells to correct nonumRegex X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=a30ad60475b4cfe7b4a6fa08838a9b27aa71849e;p=working%2FEvergreen.git Apply patch from Dan Wells to correct nonumRegex git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_6@15057 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/server/patron/ue_config.js b/Open-ILS/xul/staff_client/server/patron/ue_config.js index 925a99ed4c..1dacfd3a52 100644 --- a/Open-ILS/xul/staff_client/server/patron/ue_config.js +++ b/Open-ILS/xul/staff_client/server/patron/ue_config.js @@ -32,7 +32,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}(| \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}$)/;