1 2 3 4 5 6 7 8 9 | 1× 1× 1× 8× 1× | import { MatchError } from "../_errors"; export class RegexMatchError extends MatchError { public constructor(actualValue: any, expectedRegex: RegExp, shouldMatch: boolean) { super(actualValue, expectedRegex, `Expected ${JSON.stringify(actualValue)} ${!shouldMatch ? "not " : ""}to conform to ${expectedRegex}.`); } } |