Skip to content

Commit a7d8625

Browse files
authoredDec 29, 2020
fix: support commas and spaces in linksToSkip (#226)
1 parent 39cf9d2 commit a7d8625

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎src/cli.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ async function main() {
135135
};
136136
if (flags.skip) {
137137
if (typeof flags.skip === 'string') {
138-
opts.linksToSkip = flags.skip.split(' ').filter(x => !!x);
138+
opts.linksToSkip = flags.skip.split(/[\s,]+/).filter(x => !!x);
139139
} else if (Array.isArray(flags.skip)) {
140140
opts.linksToSkip = flags.skip;
141141
}

‎test/zcli.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ describe('cli', () => {
4545
'--verbosity',
4646
'INFO',
4747
'--skip',
48-
'LICENSE.md',
48+
'"LICENSE.md, unlinked.md"',
4949
'test/fixtures/markdown/README.md',
5050
]);
5151
assert.match(res.stdout, /\[SKP\]/);

0 commit comments

Comments
 (0)
Please sign in to comment.