mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
tools: keep Emeriti lists case-insensitive alphabetic
The current code does not treat capital and lowercase letters as equivalent. PR-URL: https://github.com/nodejs/node/pull/45159 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
parent
1494e05b05
commit
2081082973
@ -163,7 +163,7 @@ async function moveCollaboratorToEmeritus(peopleToMove) {
|
||||
const currentLine = `${collaboratorFirstLine}\n${line}\n`;
|
||||
// If textToMove is empty, this still works because when undefined is
|
||||
// used in a comparison with <, the result is always false.
|
||||
while (textToMove[0] < currentLine) {
|
||||
while (textToMove[0]?.toLowerCase() < currentLine.toLowerCase()) {
|
||||
fileContents += textToMove.shift();
|
||||
}
|
||||
fileContents += currentLine;
|
||||
|
@ -198,7 +198,7 @@ async function moveTscToEmeritus(peopleToMove) {
|
||||
const currentLine = `${memberFirstLine}\n${line}\n`;
|
||||
// If textToMove is empty, this still works because when undefined is
|
||||
// used in a comparison with <, the result is always false.
|
||||
while (textToMove[0] < currentLine) {
|
||||
while (textToMove[0]?.toLowerCase() < currentLine.toLowerCase()) {
|
||||
fileContents += textToMove.shift();
|
||||
}
|
||||
fileContents += currentLine;
|
||||
|
Loading…
Reference in New Issue
Block a user