[fix] No pattern validation client side for tags

This commit is contained in:
ljf 2021-09-17 04:35:30 +02:00
parent 25a7a246ba
commit 9715414e7a

View file

@ -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))
}