-
Notifications
You must be signed in to change notification settings - Fork 47k
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
Friendly key warnings #6500
Friendly key warnings #6500
Conversation
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
* | ||
* @providesModule keyEscapeUtils |
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.
Let's capitalize the 'k' to become KeyEscapeUtils
. The reason being that we capitalize classes (an object full of methods is basically a class) and reserve lowercase for function names.
Overall, this looks good to me. A couple of comments to fix. Also, if you can squash your commits ( |
332b349
to
f9131dc
Compare
@hkal updated the pull request. |
- Abstract escaping - Provide human readible same key warnings
f9131dc
to
d02ca23
Compare
Thanks @hkal |
- Abstract escaping - Provide human readible same key warnings (cherry picked from commit dc6fc8c)
Resolves #6475
Here's a first pass at this. I'm not entirely sold on the naming. Perhaps something like
wrap()
andunwrap()
might be a more appropriate name for these helper functions?cc @jimfb