Skip to content

Commit

Permalink
feat: prepare ncu for new README format (#561)
Browse files Browse the repository at this point in the history
* feat: prepare ncu for new README format

This accommodates both the current README format and the upcoming README
format.

Refs: nodejs/node#40137

* fixup! feat: prepare ncu for new README format
  • Loading branch information
renawolford6 committed Sep 20, 2021
1 parent dbf125a commit 57abc8b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .eslintrc
Expand Up @@ -5,7 +5,7 @@
"space-before-function-paren": ["error", "never"],
"no-multi-spaces": ["error", { "ignoreEOLComments": true }],
"camelcase": "off",
"max-len": [2, 80, 4, {"ignoreUrls": true}],
"max-len": [2, 80, 4, {"ignoreRegExpLiterals": true, "ignoreUrls": true}],
"object-property-newline": "off"
},
"env": {
Expand Down
2 changes: 1 addition & 1 deletion lib/collaborators.js
Expand Up @@ -6,7 +6,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+\*\*(.+?)\*\* +(?:&lt;|\\<)(.+?)(?:&gt;|>)/mg;

const TSC = 'TSC';
const COLLABORATOR = 'COLLABORATOR';
Expand Down
4 changes: 2 additions & 2 deletions test/fixtures/README/README.md
Expand Up @@ -235,7 +235,7 @@ For more information about the governance of the Node.js project, see
### TSC (Technical Steering Committee)

* [bar](https://github.com/bar) -
**Bar User** &lt;bar@example.com&gt; (she/her)
**Bar User** \<bar@example.com> (she/her)

### TSC emeriti

Expand All @@ -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 57abc8b

Please sign in to comment.