MCPcopy Index your code
hub / github.com/angular/angular / PatternValidator

Class PatternValidator

packages/forms/src/directives/validators.ts:680–696  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

678 standalone: false,
679})
680export 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}

Callers

nothing calls this directly

Calls 2

InputInterface · 0.90
patternValidatorFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…