Skip to content

Commit 4a90455

Browse files
committed
Fixed Regex bug in update-password
1 parent d45175b commit 4a90455

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

angular/src/app/users/change-password/change-password.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export class ChangePasswordComponent extends AppComponentBase implements OnInit
4848
this.passwordsFormGroup = new FormGroup({
4949
'newPassword': new FormControl('', [
5050
Validators.required,
51-
Validators.pattern('(?=^.{8,}$)(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?!.*\s)[0-9a-zA-Z!@#$%^&*()]*$') ]),
51+
Validators.pattern('(?=^.{8,}$)(?=.*\\d)(?=.*[a-z])(?=.*[A-Z])(?!.*\\s)[0-9a-zA-Z!@#$%^&*()]*$') ]),
5252
'repeatNewPassword': new FormControl('', [ Validators.required ])
5353
}, ChangePasswordComponent.areEqual);
5454

0 commit comments

Comments
 (0)