-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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
tools: warn about duplicates when generating AUTHORS file #40304
Conversation
get(key) { return this._map.get(key.toLowerCase()); } | ||
has(key) { return this._map.has(key.toLowerCase()); } | ||
set(key, value) { return this._map.set(key.toLowerCase(), value); } |
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.
Shouldn't we be using localeCompare
if we are passing names in addition to email addresses?
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 makes you say that?
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.
Asking my question another way: How/where would it be used? We're not comparing anything, at least not explicitly. Can you either show some code (or pseudocode) and/or some name/email addresses that would be a problem if we don't use localeCompare
? I'm not clear on what the benefit is in this context or even how it would be used.
PR-URL: nodejs#40304 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Zijian Liu <lxxyxzj@gmail.com>
Landed in d6d6b05 |
PR-URL: #40304 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Zijian Liu <lxxyxzj@gmail.com>
No description provided.