Skip to content

Commit db1601d

Browse files
committed
feat: prepare ncu for new README format
This accommodates both the current README format and the upcoming README format. Refs: nodejs/node#40137
1 parent e9bb948 commit db1601d

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

lib/collaborators.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ const TSC_TITLE = '### TSC (Technical Steering Committee)';
66
const TSCE_TITLE = '### TSC Emeriti';
77
const CL_TITLE = '### Collaborators';
88
const CLE_TITLE = '### Collaborator Emeriti';
9-
const CONTACT_RE = /\* +\[(.+?)\]\(.+?\) +-\s\*\*(.+?)\*\* +<(.+?)>/mg;
9+
const CONTACT_RE =
10+
/\* +\[(.+?)\]\(.+?\) +-\s\*\*(.+?)\*\* +(?:&lt;|<)(.+?)(?:&gt;|>)/mg;
1011

1112
const TSC = 'TSC';
1213
const COLLABORATOR = 'COLLABORATOR';

test/fixtures/README/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ For more information about the governance of the Node.js project, see
245245
### Collaborators
246246

247247
* [bar](https://github.com/bar) -
248-
**Bar User** &lt;bar@example.com&gt; (she/her)
248+
**Bar User** \<bar@example.com> (she/her)
249249
* [Baz](https://github.com/Baz) -
250250
**Baz User** &lt;baz@example.com&gt; (he/him)
251251
* [foo](https://github.com/foo) -

0 commit comments

Comments
 (0)