Skip to content

Commit 6acdbef

Browse files
Apply suggestions from code review
Co-authored-by: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
1 parent 31315b2 commit 6acdbef

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

test/parallel/test-cli-node-cli-manpage-env-vars.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ async function collectCliMdEnvVarNames() {
7373
input: fileStream,
7474
});
7575

76-
const envVariableRE = /^### `(?<varName>[^`]*?)(=[^`]+)?`$/;
76+
const envVariableRE = /^### `(?<varName>[^`]*?)(?:=[^`]+)?`$/;
7777

7878
const envVarNames = new Set();
7979

test/parallel/test-cli-node-cli-manpage-options.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ const rl = createInterface({
6464
input: cliMdContentsStream,
6565
});
6666

67-
const isOptionLineRegex = /^###( `[^`]*`(,)?)*$/;
67+
const isOptionLineRegex = /^###(?: `[^`]*`,?)*$/;
6868

6969
for await (const line of rl) {
7070
if (line.startsWith('## ')) {

0 commit comments

Comments
 (0)