feat(forms): Validator.pattern accepts a RegExp (#12323)

This commit is contained in:
Dzmitry Shylovich
2016-10-19 19:37:54 +03:00
committed by Alex Rickabaugh
parent cca4a5c519
commit bf60418fdc
3 changed files with 41 additions and 16 deletions

View File

@ -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;
};