Skip to content

Commit c752724

Browse files
authoredDec 28, 2020
fix: allow skip to be defined as an array (#222)
1 parent 679d64f commit c752724

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

‎src/cli.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,11 @@ async function main() {
128128
serverRoot: flags.serverRoot,
129129
};
130130
if (flags.skip) {
131-
opts.linksToSkip = flags.skip.split(' ').filter(x => !!x);
131+
if (typeof flags.skip === 'string') {
132+
opts.linksToSkip = flags.skip.split(' ').filter(x => !!x);
133+
} else if (Array.isArray(flags.skip)) {
134+
opts.linksToSkip = flags.skip;
135+
}
132136
}
133137
const result = await checker.check(opts);
134138
const filteredResults = result.links.filter(link => {

0 commit comments

Comments
 (0)
Please sign in to comment.