From: erickson Date: Mon, 31 Jul 2006 18:09:38 +0000 (+0000) Subject: changed middle name regex X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=36d86896443c8589504fae355b723539a9e81ba4;p=evergreen%2Fpines.git changed middle name regex git-svn-id: svn://svn.open-ils.org/ILS/trunk@5188 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 cf6312234d..f23e8b23fc 100644 --- a/Open-ILS/xul/staff_client/server/patron/ue_config.js +++ b/Open-ILS/xul/staff_client/server/patron/ue_config.js @@ -35,7 +35,7 @@ const wordRegex = /^\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}/; -const nonumRegex = /^[a-zA-Z]\D*$/; /* no numbers, no beginning whitespace */ +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 */