fix: refactor stuff

This commit is contained in:
2026-03-13 16:02:09 +08:00
parent 27bc2fc747
commit 748f57dd55
4 changed files with 7 additions and 11 deletions
+1 -1
View File
@@ -63,7 +63,7 @@ function scanDirectory(dir: string): ContentIndex {
const stats = statSync(fullPath);
if (stats.isDirectory()) {
scan(fullPath, relPath);
} else if (entry.endsWith(".md")) {
} else if (entry.endsWith(".md") || entry.endsWith(".csv") || entry.endsWith(".yarn")) {
try {
const content = readFileSync(fullPath, "utf-8");
index[normalizedRelPath] = content;