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
logictitans committed Sep 20, 2021
1 parent f233b80 commit 41d0feb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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;[email protected]&gt; (she/her)
**Bar User** \<[email protected]> (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;[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 41d0feb

Please sign in to comment.