| 678 | standalone: false, |
| 679 | }) |
| 680 | export class PatternValidator extends AbstractValidatorDirective { |
| 681 | /** |
| 682 | * @description |
| 683 | * Tracks changes to the pattern bound to this directive. |
| 684 | */ |
| 685 | @Input() |
| 686 | pattern!: string | RegExp; // This input is always defined, since the name matches selector. |
| 687 | |
| 688 | /** @internal */ |
| 689 | override inputName = 'pattern'; |
| 690 | |
| 691 | /** @internal */ |
| 692 | override normalizeInput = (input: string | RegExp): string | RegExp => input; |
| 693 | |
| 694 | /** @internal */ |
| 695 | override createValidator = (input: string | RegExp): ValidatorFn => patternValidator(input); |
| 696 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…