From d544ead7878d765f2142880bd7c01aa916097134 Mon Sep 17 00:00:00 2001 From: Romain Verger Date: Wed, 9 Mar 2022 17:12:23 +0100 Subject: [PATCH] changement regex --- src/app/pages/signup/signup.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/pages/signup/signup.component.ts b/src/app/pages/signup/signup.component.ts index 6f9d703..a71f47a 100644 --- a/src/app/pages/signup/signup.component.ts +++ b/src/app/pages/signup/signup.component.ts @@ -28,11 +28,12 @@ export class SignupComponent implements OnInit { this.signupForm = new FormGroup({ firstNameFc : new FormControl(''), lastNameFc : new FormControl(''), - emailFc : new FormControl('', [Validators.email, Validators.required, Validators.pattern(/^([\w\.\-_]+)?\w+@[\w-_]+(\.\w+){1,}/igm)]), // chercher une meilleure regex + emailFc : new FormControl('', [Validators.email, Validators.required, Validators.pattern("^([A-Z|a-z|0-9](\.|_){0,1})+[A-Z|a-z|0-9]\@([A-Z|a-z|0-9])+((\.){0,1}[A-Z|a-z|0-9]){2}\.[a-z]{2,3}$")]), passwordFc : new FormControl('', [Validators.minLength(8), Validators.required]), roleFc : new FormControl('') }) + console.log(this.roleList); }