Remove dashes from actor names
authorChocobozzz <me@florianbigard.com>
Fri, 7 Dec 2018 13:56:56 +0000 (14:56 +0100)
committerChocobozzz <me@florianbigard.com>
Fri, 7 Dec 2018 13:56:56 +0000 (14:56 +0100)
client/src/app/shared/forms/form-validators/user-validators.service.ts
client/src/app/shared/forms/form-validators/video-channel-validators.service.ts

index 66543657a380a6fbaed4f735e22b08a14f76e848..b1c61d6df94fcad102d78db711ff4d417fc585fc 100644 (file)
@@ -25,13 +25,13 @@ export class UserValidatorsService {
         Validators.required,
         Validators.minLength(1),
         Validators.maxLength(50),
-        Validators.pattern(/^[a-z0-9][a-z0-9-._]*$/)
+        Validators.pattern(/^[a-z0-9][a-z0-9._]*$/)
       ],
       MESSAGES: {
         'required': this.i18n('Username is required.'),
         'minlength': this.i18n('Username must be at least 1 character long.'),
         'maxlength': this.i18n('Username cannot be more than 50 characters long.'),
-        'pattern': this.i18n('Username should be lowercase alphanumeric; dots, dashes and underscores are allowed.')
+        'pattern': this.i18n('Username should be lowercase alphanumeric; underscores are allowed.')
       }
     }
 
index 7df4f6adfe0de3b804fe65096cfe5aadbbf26ab6..e657f36cfd1a509d4146fa0487421af643fb66e5 100644 (file)
@@ -16,13 +16,13 @@ export class VideoChannelValidatorsService {
         Validators.required,
         Validators.minLength(1),
         Validators.maxLength(50),
-        Validators.pattern(/^[a-z0-9][a-z0-9-._]*$/)
+        Validators.pattern(/^[a-z0-9][a-z0-9._]*$/)
       ],
       MESSAGES: {
         'required': this.i18n('Name is required.'),
         'minlength': this.i18n('Name must be at least 1 character long.'),
         'maxlength': this.i18n('Name cannot be more than 50 characters long.'),
-        'pattern': this.i18n('Name should be lowercase alphanumeric; dots, dashes and underscores are allowed.')
+        'pattern': this.i18n('Name should be lowercase alphanumeric; underscores are allowed.')
       }
     }