mirror of
https://github.com/tcort/markdown-link-check.git
synced 2024-09-11 06:45:29 +03:00
fix: fix crash #297
This commit is contained in:
parent
1a97f22963
commit
641b837e7d
@ -64,6 +64,8 @@ function getInputs() {
|
||||
}
|
||||
}
|
||||
|
||||
const { ignore } = program.opts();
|
||||
|
||||
for (const filenameOrUrl of filenamesOrUrls) {
|
||||
filenameForOutput = filenameOrUrl;
|
||||
let baseUrl = '';
|
||||
@ -94,7 +96,7 @@ function getInputs() {
|
||||
|
||||
// skip paths given if it includes a path to ignore.
|
||||
// todo: allow ignore paths to be glob or regex instead of just includes?
|
||||
if (program.opts().ignore.some((ignorePath) => resolved.includes(ignorePath))) {
|
||||
if (ignore && ignore.some((ignorePath) => resolved.includes(ignorePath))) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user