feat(forms): Validator.pattern accepts a RegExp (#12323)
This commit is contained in:
committed by
Alex Rickabaugh
parent
cca4a5c519
commit
bf60418fdc
+1
-1
@@ -517,7 +517,7 @@ export declare class Validators {
|
||||
static nullValidator(c: AbstractControl): {
|
||||
[key: string]: boolean;
|
||||
};
|
||||
static pattern(pattern: string): ValidatorFn;
|
||||
static pattern(pattern: string | RegExp): ValidatorFn;
|
||||
static required(control: AbstractControl): {
|
||||
[key: string]: boolean;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user