mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
remove the 2 char limit for names
This commit is contained in:
parent
562fd3d1fe
commit
89868d1a5a
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ const includes = items => item => helpers.withParams(
|
|||
item => !helpers.req(item) || (items ? items.includes(item) : false)
|
||||
)(item)
|
||||
|
||||
const name = helpers.regex('name', new RegExp(`^(?:[A-Za-z${nonAsciiWordCharacters}]{2,30}[ ,.'-]{0,3})+$`))
|
||||
const name = helpers.regex('name', new RegExp(`^(?:[A-Za-z${nonAsciiWordCharacters}]{1,30}[ ,.'-]{0,3})+$`))
|
||||
|
||||
const unique = items => item => helpers.withParams(
|
||||
{ type: 'unique', arg: items, value: item },
|
||||
|
|
Loading…
Add table
Reference in a new issue