Skip to content

Commit

Permalink
change logic to avoid filtering off the captured item
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjgoss committed Oct 13, 2019
1 parent d16e05f commit 486cd73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cucumber-expressions/javascript/src/Group.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default class Group {

get values(): string[] {
return (this.children.length === 0 ? [this] : this.children)
.filter(g => typeof g.start !== 'undefined')
.map(g => g.value)
.filter(v => v !== null)
}
}

0 comments on commit 486cd73

Please sign in to comment.