diff options
Diffstat (limited to 'client/src/app/shared')
-rw-r--r-- | client/src/app/shared/forms/form-validators/video.ts | 4 |
1 files changed, 2 insertions, 2 deletions
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 = { | |||
24 | }; | 24 | }; |
25 | 25 | ||
26 | export const VIDEO_TAGS = { | 26 | export const VIDEO_TAGS = { |
27 | VALIDATORS: [ Validators.pattern('^[a-zA-Z0-9]{0,10}$') ], | 27 | VALIDATORS: [ Validators.maxLength(10) ], |
28 | MESSAGES: { | 28 | MESSAGES: { |
29 | 'pattern': 'A tag should be between 2 and 10 alphanumeric characters long.' | 29 | 'maxlength': 'A tag should be less than 10 characters long.' |
30 | } | 30 | } |
31 | }; | 31 | }; |