Make scanner skips non-markdown files now

This commit is contained in:
2025-02-11 13:16:00 +01:00
parent 35a0fec948
commit c86fb95d90

View File

@@ -47,7 +47,7 @@ async function walk<T>(directory: string, visitor: (path: string) => Promise<T[]
if (fs.statSync(path).isDirectory()) {
const items = await walk(path, visitor);
list.push(...items);
} else {
} else if (path.endsWith("md") || (path.endsWith("MD"))) {
const items = await visitor(path);
list.push(...items);
}