aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-12-07 14:56:56 +0100
committerChocobozzz <me@florianbigard.com>2018-12-07 14:56:56 +0100
commit6ebfaf67641d466bbd29db8acbd6608ed13bcd6d (patch)
tree26f0fee72a5f79e96bcd2c3530c746357e8319ae /client/src
parentd0ce42c1c17054b7e0c5081243152c32ecb1c193 (diff)
downloadPeerTube-6ebfaf67641d466bbd29db8acbd6608ed13bcd6d.tar.gz
PeerTube-6ebfaf67641d466bbd29db8acbd6608ed13bcd6d.tar.zst
PeerTube-6ebfaf67641d466bbd29db8acbd6608ed13bcd6d.zip
Remove dashes from actor names
Diffstat (limited to 'client/src')
-rw-r--r--client/src/app/shared/forms/form-validators/user-validators.service.ts4
-rw-r--r--client/src/app/shared/forms/form-validators/video-channel-validators.service.ts4
2 files changed, 4 insertions, 4 deletions
diff --git a/client/src/app/shared/forms/form-validators/user-validators.service.ts b/client/src/app/shared/forms/form-validators/user-validators.service.ts
index 66543657a..b1c61d6df 100644
--- a/client/src/app/shared/forms/form-validators/user-validators.service.ts
+++ b/client/src/app/shared/forms/form-validators/user-validators.service.ts
@@ -25,13 +25,13 @@ export class UserValidatorsService {
25 Validators.required, 25 Validators.required,
26 Validators.minLength(1), 26 Validators.minLength(1),
27 Validators.maxLength(50), 27 Validators.maxLength(50),
28 Validators.pattern(/^[a-z0-9][a-z0-9-._]*$/) 28 Validators.pattern(/^[a-z0-9][a-z0-9._]*$/)
29 ], 29 ],
30 MESSAGES: { 30 MESSAGES: {
31 'required': this.i18n('Username is required.'), 31 'required': this.i18n('Username is required.'),
32 'minlength': this.i18n('Username must be at least 1 character long.'), 32 'minlength': this.i18n('Username must be at least 1 character long.'),
33 'maxlength': this.i18n('Username cannot be more than 50 characters long.'), 33 'maxlength': this.i18n('Username cannot be more than 50 characters long.'),
34 'pattern': this.i18n('Username should be lowercase alphanumeric; dots, dashes and underscores are allowed.') 34 'pattern': this.i18n('Username should be lowercase alphanumeric; underscores are allowed.')
35 } 35 }
36 } 36 }
37 37
diff --git a/client/src/app/shared/forms/form-validators/video-channel-validators.service.ts b/client/src/app/shared/forms/form-validators/video-channel-validators.service.ts
index 7df4f6adf..e657f36cf 100644
--- a/client/src/app/shared/forms/form-validators/video-channel-validators.service.ts
+++ b/client/src/app/shared/forms/form-validators/video-channel-validators.service.ts
@@ -16,13 +16,13 @@ export class VideoChannelValidatorsService {
16 Validators.required, 16 Validators.required,
17 Validators.minLength(1), 17 Validators.minLength(1),
18 Validators.maxLength(50), 18 Validators.maxLength(50),
19 Validators.pattern(/^[a-z0-9][a-z0-9-._]*$/) 19 Validators.pattern(/^[a-z0-9][a-z0-9._]*$/)
20 ], 20 ],
21 MESSAGES: { 21 MESSAGES: {
22 'required': this.i18n('Name is required.'), 22 'required': this.i18n('Name is required.'),
23 'minlength': this.i18n('Name must be at least 1 character long.'), 23 'minlength': this.i18n('Name must be at least 1 character long.'),
24 'maxlength': this.i18n('Name cannot be more than 50 characters long.'), 24 'maxlength': this.i18n('Name cannot be more than 50 characters long.'),
25 'pattern': this.i18n('Name should be lowercase alphanumeric; dots, dashes and underscores are allowed.') 25 'pattern': this.i18n('Name should be lowercase alphanumeric; underscores are allowed.')
26 } 26 }
27 } 27 }
28 28