From fe8369cf9a063f62ad4a5fedc3001835aff422f1 Mon Sep 17 00:00:00 2001 From: Alicia Lopez Date: Mon, 8 Feb 2021 10:18:47 -0800 Subject: [PATCH] fix: accommodate case changes in README header Because of changes to the README, node-core-utils `git node land` is now broken. This fixes it. Please fast-track? --- lib/collaborators.js | 8 ++++---- test/fixtures/README/README.md | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/collaborators.js b/lib/collaborators.js index 2019cfc..bfe65aa 100644 --- a/lib/collaborators.js +++ b/lib/collaborators.js @@ -74,10 +74,10 @@ function parseCollaborators(readme, cli) { const collaborators = new Map(); let m; - const tscIndex = readme.indexOf(TSC_TITLE); - const tsceIndex = readme.indexOf(TSCE_TITLE); - const clIndex = readme.indexOf(CL_TITLE); - const cleIndex = readme.indexOf(CLE_TITLE); + const tscIndex = readme.toUpperCase().indexOf(TSC_TITLE.toUpperCase()); + const tsceIndex = readme.toUpperCase().indexOf(TSCE_TITLE.toUpperCase()); + const clIndex = readme.toUpperCase().indexOf(CL_TITLE.toUpperCase()); + const cleIndex = readme.toUpperCase().indexOf(CLE_TITLE.toUpperCase()); if (tscIndex === -1) { throw new Error(`Couldn't find ${TSC_TITLE} in the README`); diff --git a/test/fixtures/README/README.md b/test/fixtures/README/README.md index ce3cc67..f05baba 100644 --- a/test/fixtures/README/README.md +++ b/test/fixtures/README/README.md @@ -237,7 +237,7 @@ For more information about the governance of the Node.js project, see * [bar](https://github.com/bar) - **Bar User** <bar@example.com> (she/her) -### TSC Emeriti +### TSC emeriti * [test](https://github.com/test) - **Test** <test@example.com> @@ -257,7 +257,7 @@ For more information about the governance of the Node.js project, see * [ExtraSpace](https://github.com/extraspace) - **Extra Space** <extraspace@example.com> (he/him) -### Collaborator Emeriti +### Collaborator emeriti * [bee](https://github.com/bee) - **bee** <bee@example.com>