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;bar@example.com&gt; (she/her)
**Bar User** \<bar@example.com> (she/her)
* [Baz](https://github.com/Baz) -
**Baz User** &lt;baz@example.com&gt; (he/him)
* [foo](https://github.com/foo) -
Expand Down

0 comments on commit db1601d

Please sign in to comment.