mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
[fix] No pattern validation client side for tags
This commit is contained in:
parent
25a7a246ba
commit
9715414e7a
1 changed files with 1 additions and 1 deletions
|
@ -211,7 +211,7 @@ export function formatYunoHostArgument (arg) {
|
|||
else if (field.component !== 'CheckboxItem' && arg.optional !== true) {
|
||||
validation.required = validators.required
|
||||
}
|
||||
if (arg.pattern) {
|
||||
if (arg.pattern && arg.type !== 'tags') {
|
||||
// validation.pattern = validators.helpers.withMessage(arg.pattern.error,
|
||||
validation.pattern = validators.helpers.regex(arg.pattern.error, new RegExp(arg.pattern.regexp))
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue