Skip to content

Commit 5c4aa1c

Browse files
ludeknovyLudek Novy
and
Ludek Novy
authored
IParameterTypeDefinition fix (#1733)
Co-authored-by: Ludek Novy <ludeknovy@fastmail.com>
1 parent a3b71ae commit 5c4aa1c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ Please see [CONTRIBUTING.md](https://github.com/cucumber/cucumber/blob/master/CO
2626

2727
* Prevent duplicate scenario execution where the same feature is targeted in multiple line expressions ([#1706](https://github.com/cucumber/cucumber-js/issues/1706))
2828
* Fixed reports banner to point to [new docs](https://cucumber.io/docs/cucumber/environment-variables/) about environment variables
29+
* IParameterTypeDefinition regexp fix [1702](https://github.com/cucumber/cucumber-js/issues/1702)
2930

3031
## [7.3.0] (2021-06-17)
3132

src/support_code_library_builder/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export interface IDefineTestRunHookOptions {
5959

6060
export interface IParameterTypeDefinition<T> {
6161
name: string
62-
regexp: RegExp
62+
regexp: readonly RegExp[] | readonly string[] | RegExp | string
6363
transformer: (...match: string[]) => T
6464
useForSnippets?: boolean
6565
preferForRegexpMatch?: boolean

0 commit comments

Comments
 (0)