From e54163c2d5cc925eb56ead831f2fecd000222a98 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 22 Mar 2017 21:47:05 +0100 Subject: Relax on tags (accept any characters and not required anymore) --- client/src/app/shared/forms/form-validators/video.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'client/src/app/shared') diff --git a/client/src/app/shared/forms/form-validators/video.ts b/client/src/app/shared/forms/form-validators/video.ts index d972ee44b..de5112238 100644 --- a/client/src/app/shared/forms/form-validators/video.ts +++ b/client/src/app/shared/forms/form-validators/video.ts @@ -24,8 +24,8 @@ export const VIDEO_DESCRIPTION = { }; export const VIDEO_TAGS = { - VALIDATORS: [ Validators.pattern('^[a-zA-Z0-9]{0,10}$') ], + VALIDATORS: [ Validators.maxLength(10) ], MESSAGES: { - 'pattern': 'A tag should be between 2 and 10 alphanumeric characters long.' + 'maxlength': 'A tag should be less than 10 characters long.' } }; -- cgit v1.2.3