-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
Bugfix/regex regression #119
Conversation
Regression on checking for the correct symbols in a regex.
Regression on checking for the correct symbols in a regex.
@aslakhellesoy This fixes the regression reported in cucumber/vscode#125 |
Great. Please add a test that would have failed before this change, and passes with it. |
@aslakhellesoy apologies for the delay i have added a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm merging this. I think a more robust implementation would use the same technique as in https://github.com/cucumber/language-service/blob/main/src/language/tsxLanguage.ts, where we look at the node type
to decide how to extract the value, rather than looking at the node text
.
But this can be done as a separate refactoring.
@@ -8,7 +8,7 @@ export const pythonLanguage: Language = { | |||
case 'string': { | |||
return stringLiteral(node) | |||
} | |||
case 'concatednated_string': { | |||
case 'concatenated_string': { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I fixed this typo and nothing broke, so I assume this path isn't tested.
🤔 What's changed?
⚡️ What's your motivation?
🏷️ What kind of change is this?
♻️ Anything particular you want feedback on?
📋 Checklist:
This text was originally generated from a template, then edited by hand. You can modify the template here.