From: dbs Date: Wed, 2 Dec 2009 16:22:34 +0000 (+0000) Subject: Apply patch from Dan Wells to correct nonumRegex X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=0a276c9e4f88d010c059098e1336cbaa9758da41;p=contrib%2FConifer.git Apply patch from Dan Wells to correct nonumRegex git-svn-id: svn://svn.open-ils.org/ILS/trunk@15056 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 32c3951e8e..6a038eacc8 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}$)/;