Apply patch from Dan Wells to correct nonumRegex
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 2 Dec 2009 16:25:45 +0000 (16:25 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 2 Dec 2009 16:25:45 +0000 (16:25 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_6_0@15058 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/patron/ue_config.js

index 925a99e..1dacfd3 100644 (file)
@@ -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}$)/;