From 5832e27aa100557c33751810983cd29da7e0f8cc Mon Sep 17 00:00:00 2001 From: Matheus Marchini Date: Fri, 16 Feb 2018 15:27:37 -0200 Subject: [PATCH 1/2] lib: accept extra spaces in the collaborators list --- lib/collaborators.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/collaborators.js b/lib/collaborators.js index 42e02176..a2f5fa00 100644 --- a/lib/collaborators.js +++ b/lib/collaborators.js @@ -4,7 +4,7 @@ const TSC_TITLE = '### TSC (Technical Steering Committee)'; const TSCE_TITLE = '### TSC Emeriti'; const CL_TITLE = '### Collaborators'; const CLE_TITLE = '### Collaborator Emeriti'; -const CONTACT_RE = /\* \[(.+?)\]\(.+?\) -\s\*\*(.+?)\*\* <(.+?)>/mg; +const CONTACT_RE = /\* +\[(.+?)\]\(.+?\) +-\s\*\*(.+?)\*\* +<(.+?)>/mg; const TSC = 'TSC'; const COLLABORATOR = 'COLLABORATOR'; From 1f704582056c121a42c250420ab5f49c8142cdfb Mon Sep 17 00:00:00 2001 From: cPhost Date: Sat, 17 Feb 2018 12:16:44 -0500 Subject: [PATCH 2/2] test: add test for having more than one spaces in readme --- test/fixtures/README/README.md | 2 ++ test/fixtures/collaborators.json | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/test/fixtures/README/README.md b/test/fixtures/README/README.md index 7c8c81c6..ce3cc67b 100644 --- a/test/fixtures/README/README.md +++ b/test/fixtures/README/README.md @@ -254,6 +254,8 @@ For more information about the governance of the Node.js project, see **Quo User** <quo@example.com> (she/her) * [Quux](https://github.com/quux) - **Quux User** <quux@example.com> (he/him) +* [ExtraSpace](https://github.com/extraspace) - +**Extra Space** <extraspace@example.com> (he/him) ### Collaborator Emeriti diff --git a/test/fixtures/collaborators.json b/test/fixtures/collaborators.json index b40e39fe..8dcd5f84 100644 --- a/test/fixtures/collaborators.json +++ b/test/fixtures/collaborators.json @@ -28,5 +28,11 @@ "name": "Quux User", "email": "quux@example.com", "type": "COLLABORATOR" + }, + { + "login": "ExtraSpace", + "name": "Extra Space", + "email": "extraspace@example.com", + "type": "COLLABORATOR" } ]