We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
customValidator
- [X] bug report - [ ] feature request
Windows 10
Angular CLI: 15.0.4 Node: 18.12.1 Package Manager: npm 9.2.0 OS: win32 x64 Angular: 15.0.4 ... animations, cli, common, compiler, compiler-cli, core, forms ... platform-browser, platform-browser-dynamic, router Package Version --------------------------------------------------------- @angular-devkit/architect 0.1500.4 @angular-devkit/build-angular 15.0.4 @angular-devkit/core 15.0.4 @angular-devkit/schematics 15.0.4 @angular/cdk 15.0.3 @angular/fire 7.5.0 @angular/material 15.0.3 @schematics/angular 15.0.4 rxjs 7.5.7 typescript 4.8.4
HTML :
<mat-form-field> <mat-label>Password</mat-label> <mat-pass-toggle-visibility #toggle matSuffix></mat-pass-toggle-visibility> <input matInput #password [type]="toggle.type" required [(ngModel)]="user.password"> </mat-form-field> <mat-password-strength #passwordComponent [password]="password.value" [customValidator]="regexPasswordConfirm"></mat-password-strength> <mat-form-field> <mat-label>Confirm password</mat-label> <mat-pass-toggle-visibility #toggleConfirm matSuffix></mat-pass-toggle-visibility> <input matInput #passwordConfirm [type]="toggleConfirm.type" required [(ngModel)]="user.passwordConfirm" (keyup)="confirmPasswordChange($event)"> </mat-form-field> <mat-password-strength #passwordConfirmComponent [password]="passwordConfirm.value"></mat-password-strength> <mat-password-strength-info [passwordComponent]="passwordComponent" customCharsCriteriaMsg="Confirm password not indentical to password"></mat-password-strength-info>
TS :
confirmPasswordChange(ev: any) { this.regexPasswordConfirm = new RegExp('^' + ev.target.value.replace(/[.*+?^${}()|[\]\\]/, '\\$&')); }
I would like to be able to update the regex value.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Bug Report
OS and Version?
Versions
Repro steps
HTML :
TS :
The log given by the failure
Desired functionality
I would like to be able to update the regex value.
The text was updated successfully, but these errors were encountered: