var dataFields;
const laxRegex = /\w+/;
+const nameRegex = /^\w+[\w\s]*$/;
const numRegex = /^\d+$/;
const wordRegex = /^[\w-]+$/;
const unameRegex = /^\w[\.\w\@-]*$/;
errkey : 'ue_bad_firstname',
widget : {
id : 'ue_firstname',
- regex : nonumRegex,
+ regex : nameRegex,
type : 'input',
onblur : function(field) {
uEditCheckNamesDup('first', field );
errkey : 'ue_bad_middlename',
widget : {
id : 'ue_middlename',
- regex : nonumRegex,
+ regex : nameRegex,
type : 'input'
}
},
errkey : 'ue_bad_lastname',
widget : {
id : 'ue_lastname',
- regex : nonumRegex,
+ regex : nameRegex,
type : 'input',
onblur : function(field) {
uEditCheckNamesDup('last', field );