GeezerVison is showing github.com — tools: keep Emeriti lists case-insensitive alphabetic · nodejs/node@62c233c
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: tools/find-inactive-collaborators.mjs +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -163,7 +163,7 @@ async function moveCollaboratorToEmeritus(peopleToMove) { |
163 | 163 | const currentLine = `${collaboratorFirstLine}\n${line}\n`; |
164 | 164 | // If textToMove is empty, this still works because when undefined is |
165 | 165 | // used in a comparison with <, the result is always false. |
166 | | - while (textToMove[0] < currentLine) { |
| 166 | + while (textToMove[0]?.toLowerCase() < currentLine.toLowerCase()) { |
167 | 167 | fileContents += textToMove.shift(); |
168 | 168 | } |
169 | 169 | fileContents += currentLine; |
|
Collapse file
Copy file name to clipboardExpand all lines: tools/find-inactive-tsc.mjs +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -198,7 +198,7 @@ async function moveTscToEmeritus(peopleToMove) { |
198 | 198 | const currentLine = `${memberFirstLine}\n${line}\n`; |
199 | 199 | // If textToMove is empty, this still works because when undefined is |
200 | 200 | // used in a comparison with <, the result is always false. |
201 | | - while (textToMove[0] < currentLine) { |
| 201 | + while (textToMove[0]?.toLowerCase() < currentLine.toLowerCase()) { |
202 | 202 | fileContents += textToMove.shift(); |
203 | 203 | } |
204 | 204 | fileContents += currentLine; |
|