Skip to content

TextMatch

type TextMatch =
| string
| RegExp
| {
flags?: string;
pattern: string;
};

Expected text. A plain string matches ignoring case and surrounding spaces; a pattern is a regular expression.