-
-
Notifications
You must be signed in to change notification settings - Fork 689
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cucumber-expressions: regexp bug - parentheses in character class regex #454
Comments
Thanks for the very detailed bug report @spicalous! I have an idea what the problem might be. I'll be working on a fix. |
Thanks @aslakhellesoy ! Let me know if I can be of any help :) |
Some help would be great! Start in https://github.com/cucumber/cucumber/blob/master/cucumber-expressions/javascript/test/tree_regexp_test.js and see if you can write a failing test. The
Can you fix the parser? |
@spicalous See above - I've reproduced and fixed the bug (in Java). Do you think you can port it to some of the other languages? |
@aslakhellesoy Nice! I have been a bit busy but I will give it a go tomorrow evening, thanks! 👍 |
#463 JS implemention PR opened :) |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Wasn't this fixed in 6.0.2? |
You're right @luke-hill - my bad |
Summary
A regular expression for a step definition is not generating the correct step parameters
Current Behavior
I have the following regexp for a step in my project
Should match and return correct parameters for
an example step: VALUE_ONE, VALUE_TWO (ABC)
Currently it matches, but returns undefined for the step parameter
Possible Solution
We are able to change our regexp to match step in passing test (mentioned below), however I feel like this should still be fixed as it used to work in older version of cucumber
Steps to Reproduce (for bugs)
I have managed to produce a failing test in
https://github.com/cucumber/cucumber-expressions-javascript
Add the following lines to https://github.com/cucumber/cucumber-expressions-javascript/blob/master/test/regular_expression_test.js
Context & Motivation
We're upgrading from a really old version of cucumber-js (0.5.3)
This used to work with the old version and seems like a regression
Your Environment
[email protected] in the browser
Any help would be appreciated
Thank you in advance!
The text was updated successfully, but these errors were encountered: