Skip to content

Commit

Permalink
feat: prepare ncu for new README format
Browse files Browse the repository at this point in the history
This accommodates both the current README format and the upcoming README
format.

Refs: nodejs/node#40137
  • Loading branch information
Trott committed Sep 17, 2021
1 parent e9bb948 commit db1601d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/collaborators.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ 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\*\*(.+?)\*\* +(?:&lt;|<)(.+?)(?:&gt;|>)/mg;

const TSC = 'TSC';
const COLLABORATOR = 'COLLABORATOR';
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/README/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ For more information about the governance of the Node.js project, see
### Collaborators

* [bar](https://github.com/bar) -
**Bar User** &lt;[email protected]&gt; (she/her)
**Bar User** \<[email protected]> (she/her)
* [Baz](https://github.com/Baz) -
**Baz User** &lt;[email protected]&gt; (he/him)
* [foo](https://github.com/foo) -
Expand Down

0 comments on commit db1601d

Please sign in to comment.