diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-03-22 21:47:05 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-03-22 21:56:02 +0100 |
commit | e54163c2d5cc925eb56ead831f2fecd000222a98 (patch) | |
tree | 142d0592d66d90b489f592a867770235315bee0c /client/src/app/shared | |
parent | 6e07c3de88791a0b342e0cc319590048117f9c2d (diff) | |
download | PeerTube-e54163c2d5cc925eb56ead831f2fecd000222a98.tar.gz PeerTube-e54163c2d5cc925eb56ead831f2fecd000222a98.tar.zst PeerTube-e54163c2d5cc925eb56ead831f2fecd000222a98.zip |
Relax on tags (accept any characters and not required anymore)
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 | }; |