Skip to content

Commit fb7c4e1

Browse files
committed
fixup! test: simplify test-cli-node-options-docs
1 parent 0f2ec6a commit fb7c4e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-cli-node-options-docs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ for (const [, envVar] of manPageText.matchAll(/\.It Fl (-[a-zA-Z0-9._-]+)/g)) {
3939
}
4040

4141
for (const [, envVar, config] of nodeOptionsCC.matchAll(addOptionRE)) {
42-
const hasTrueAsDefaultValue = /^\s*(?:true|HAVE_[A-Z_]+)\s*$/.test(config);
42+
const hasTrueAsDefaultValue = /,\s*(?:true|HAVE_[A-Z_]+)\s*$/.test(config);
4343
const isInNodeOption = config.includes('kAllowedInEnvvar') && !config.includes('kDisallowedInEnvvar');
4444
const isV8Option = config.includes('V8Option{}');
4545
const isNoOp = config.includes('NoOp{}');

0 commit comments

Comments
 (0)