Skip to content

Commit bc7a09d

Browse files
committed
feat: prepare ncu for new README format (#561)
* 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
1 parent 9ea46df commit bc7a09d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.eslintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"space-before-function-paren": ["error", "never"],
66
"no-multi-spaces": ["error", { "ignoreEOLComments": true }],
77
"camelcase": "off",
8-
"max-len": [2, 80, 4, {"ignoreUrls": true}],
8+
"max-len": [2, 80, 4, {"ignoreRegExpLiterals": true, "ignoreUrls": true}],
99
"object-property-newline": "off"
1010
},
1111
"env": {

lib/collaborators.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ 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 = /\* +\[(.+?)\]\(.+?\) +-\s+\*\*(.+?)\*\* +(?:&lt;|\\<)(.+?)(?:&gt;|>)/mg;
1010

1111
const TSC = 'TSC';
1212
const COLLABORATOR = 'COLLABORATOR';

test/fixtures/README/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ For more information about the governance of the Node.js project, see
235235
### TSC (Technical Steering Committee)
236236

237237
* [bar](https://github.com/bar) -
238-
**Bar User** &lt;[email protected]&gt; (she/her)
238+
**Bar User** \<[email protected]> (she/her)
239239

240240
### TSC emeriti
241241

@@ -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;[email protected]&gt; (she/her)
248+
**Bar User** \<[email protected]> (she/her)
249249
* [Baz](https://github.com/Baz) -
250250
**Baz User** &lt;[email protected]&gt; (he/him)
251251
* [foo](https://github.com/foo) -

0 commit comments

Comments
 (0)