-
Notifications
You must be signed in to change notification settings - Fork 3
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
Issue 1431: fix copy multiple locators + small refactoring #1439
Conversation
switch (match) { | ||
case "\\": | ||
return "\\\\\\\\"; | ||
case "'": | ||
return "\\'"; | ||
case "\n": | ||
return "\\n"; | ||
default: | ||
return match; | ||
} |
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.
It looks like magic strings to me now.
Is it possible for you to add an explanation or constants with meaningful names to the code explaining them?
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.
sorry, not my code. but it's covered with tests, hope they could help you to understand what's going on
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 just refactored location of this function
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.
what tests cover this code?
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.
"escape symbols in locator"
from https://github.com/jdi-testing/jdn-ai/pull/1439/files#diff-c3f66e9470dbf46aa684c5ffec7394f39ed3ff49ba5e11d6aa1427f317a57938
No description provided.