Closed JornWildt closed 4 months ago
Please with this issue look also at:
step = step.replace(/{string}/g, '"[^"]+"');
in steps.handler.ts
As the cucumber expression specification states:
Matches single-quoted or double-quoted strings, for example "banana split" or 'banana split' (but not banana split). Only the text between the quotes will be extracted. The quotes themselves are discarded. Empty pairs of quotes are valid and will be matched and passed to step code as empty strings.
Current regex expression does not work for:
""
it should match an empty string. ''
it should match an empty string. 'Some Text! 123.'
it should match Some Text! 123.
Consider using ["|'](.*)["|']
instead of "[^"]+"
@JornWildt
I have added the {word} expression in https://github.com/alexkrechik/VSCucumberAutoComplete/pull/418 If @alexkrechik will find some free time, he could merge my pr and package it with the next release.
This issue is to be fixed or implemented in the 3.0.0 version of the extension. If this issue is unresolved or there are additional notes, please create a new ticket with the necessary details.
Please add support for {word} as a cucumber expression (see https://github.com/cucumber/cucumber-expressions#readme).