You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using an example in the README, I have a step definition like Given I eat a {word}, which would match Given I eat a "worm" or Given I eat a 'worm'. But it doesn't match Given I eat a worm.
When using {int}s, {num}s and {float}s, it is not necessary to surround the values with quotes. Would it be possible to extend the same functionality to {word}? (but not {string})
The text was updated successfully, but these errors were encountered:
This is very much a range problem. With the quotes the regex knows to only find words with quotes. Without the quotes the word count could be unbounded?
So in the example Given I eat a 'worm' the existing regex RegExp("['|\"](\\w+)['|\"]") would work however if you had a step like
Given I eat {word} and it tasted like {word}
The regex above would match all words past the initial {word} parameter I think.
Using an example in the README, I have a step definition like
Given I eat a {word}
, which would matchGiven I eat a "worm"
orGiven I eat a 'worm'
. But it doesn't matchGiven I eat a worm
.When using
{int}
s,{num}
s and{float}
s, it is not necessary to surround the values with quotes. Would it be possible to extend the same functionality to{word}
? (but not{string}
)The text was updated successfully, but these errors were encountered: