]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/shared/forms/form-validators/video.ts
Fix client compilation
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / forms / form-validators / video.ts
index 293fd805fdd600c548640e1c42aca58de2941050..f7e4e5e4b175829c875e22c11b096a43c79b2b41 100644 (file)
@@ -38,8 +38,9 @@ export const VIDEO_DESCRIPTION = {
 };
 
 export const VIDEO_TAGS = {
-  VALIDATORS: [ Validators.maxLength(10) ],
+  VALIDATORS: [ Validators.minLength(2), Validators.maxLength(10) ],
   MESSAGES: {
+    'minlength': 'A tag should be more than 2 characters long.',
     'maxlength': 'A tag should be less than 10 characters long.'
   }
 };