diff --git a/CHANGELOG.md b/CHANGELOG.md index 00ec65b8f..81478add3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,6 +26,7 @@ Please see [CONTRIBUTING.md](https://github.com/cucumber/cucumber/blob/master/CO * Prevent duplicate scenario execution where the same feature is targeted in multiple line expressions ([#1706](https://github.com/cucumber/cucumber-js/issues/1706)) * Fixed reports banner to point to [new docs](https://cucumber.io/docs/cucumber/environment-variables/) about environment variables +* IParameterTypeDefinition regexp fix [1702](https://github.com/cucumber/cucumber-js/issues/1702) ## [7.3.0] (2021-06-17) diff --git a/src/support_code_library_builder/types.ts b/src/support_code_library_builder/types.ts index 5eb5b2dac..67d783053 100644 --- a/src/support_code_library_builder/types.ts +++ b/src/support_code_library_builder/types.ts @@ -59,7 +59,7 @@ export interface IDefineTestRunHookOptions { export interface IParameterTypeDefinition { name: string - regexp: RegExp + regexp: readonly RegExp[] | readonly string[] | RegExp | string transformer: (...match: string[]) => T useForSnippets?: boolean preferForRegexpMatch?: boolean