[lib.field-manager] 'basic-name' now can feature dots '.'
This commit is contained in:
parent
1ea9a713b7
commit
bb8a985db3
|
@ -15,7 +15,7 @@ FieldValidator.pushFormat('bypass', () => true);
|
|||
|
||||
/* (2) Basic name */
|
||||
FieldValidator.pushFormat('basic-name', (input) => {
|
||||
return typeof input === 'string' && input.trim() === input && /^[a-z0-9 _-]{3,20}$/i.test(input);
|
||||
return typeof input === 'string' && input.trim() === input && /^[a-z0-9\. _-]{3,20}$/i.test(input);
|
||||
}, '3 characters required: letters, numbers, spaces, dots, hyphens');
|
||||
|
||||
/* (3) URL name */
|
||||
|
|
Loading…
Reference in New Issue