cucumber-expressions
Version:
Cucumber Expressions - a simpler alternative to Regular Expressions
12 lines (11 loc) • 453 B
TypeScript
import Argument from './Argument';
import ParameterTypeRegistry from './ParameterTypeRegistry';
import Expression from './Expression';
export default class RegularExpression implements Expression {
readonly regexp: RegExp;
private readonly parameterTypeRegistry;
private readonly treeRegexp;
constructor(regexp: RegExp, parameterTypeRegistry: ParameterTypeRegistry);
match(text: string): Argument<any>[];
get source(): string;
}