[open-ils-commits] r494 - conifer/trunk/xul/server/patron (dbs)
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon May 25 13:26:10 EDT 2009
Author: dbs
Date: 2009-05-25 13:26:08 -0400 (Mon, 25 May 2009)
New Revision: 494
Modified:
conifer/trunk/xul/server/patron/ue_config.js
Log:
Many of our patrons have names with legitimate spaces in them ("St. Pierre").
Relax the user editor regex accordingly.
Modified: conifer/trunk/xul/server/patron/ue_config.js
===================================================================
--- conifer/trunk/xul/server/patron/ue_config.js 2009-05-25 01:57:46 UTC (rev 493)
+++ conifer/trunk/xul/server/patron/ue_config.js 2009-05-25 17:26:08 UTC (rev 494)
@@ -27,6 +27,7 @@
var dataFields;
const laxRegex = /\w+/;
+const nameRegex = /^\w+[\w\s]*$/;
const numRegex = /^\d+$/;
const wordRegex = /^[\w-]+$/;
const unameRegex = /^\w[\.\w\@-]*$/;
@@ -165,7 +166,7 @@
errkey : 'ue_bad_firstname',
widget : {
id : 'ue_firstname',
- regex : nonumRegex,
+ regex : nameRegex,
type : 'input',
onblur : function(field) {
uEditCheckNamesDup('first', field );
@@ -179,7 +180,7 @@
errkey : 'ue_bad_middlename',
widget : {
id : 'ue_middlename',
- regex : nonumRegex,
+ regex : nameRegex,
type : 'input'
}
},
@@ -190,7 +191,7 @@
errkey : 'ue_bad_lastname',
widget : {
id : 'ue_lastname',
- regex : nonumRegex,
+ regex : nameRegex,
type : 'input',
onblur : function(field) {
uEditCheckNamesDup('last', field );
More information about the open-ils-commits
mailing list