import { MatcherRule } from './MatcherRule.js'; /** * @access private */ export class MatchesRegExp extends MatcherRule { constructor(private readonly pattern: RegExp, transformation: (v: string) => Output_Type) { super(transformation); } matches(value: string): boolean { return this.pattern.test(value); } }