diff options
Diffstat (limited to 'client/src/app')
-rw-r--r-- | client/src/app/shared/forms/form-validators/user-validators.service.ts | 4 | ||||
-rw-r--r-- | client/src/app/shared/forms/form-validators/video-channel-validators.service.ts | 4 |
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 | ||