Skip to content
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

lib: accept extra spaces in the collaborators list #182

Merged
merged 2 commits into from
Feb 17, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/collaborators.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
2 changes: 2 additions & 0 deletions test/fixtures/README/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,8 @@ For more information about the governance of the Node.js project, see
**Quo User** <[email protected]> (she/her)
* [Quux](https://github.com/quux) -
**Quux User** <[email protected]> (he/him)
* [ExtraSpace](https://github.com/extraspace) -
**Extra Space** <[email protected]> (he/him)

### Collaborator Emeriti

Expand Down
6 changes: 6 additions & 0 deletions test/fixtures/collaborators.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,11 @@
"name": "Quux User",
"email": "[email protected]",
"type": "COLLABORATOR"
},
{
"login": "ExtraSpace",
"name": "Extra Space",
"email": "[email protected]",
"type": "COLLABORATOR"
}
]