Skip to content

Commit 899362b

Browse files
committed
更新scanDirectory函数,调整文本文件读取限制,将最大文件大小从100KB增加至1MB,以支持更大文本文件的读取。确保代码注释清晰,提升可读性。
1 parent 163ff79 commit 899362b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/lib/scanUtils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,9 +341,9 @@ export async function scanDirectory(
341341
if (
342342
file.size < maxContentSize &&
343343
isTextFile(file) &&
344-
file.size < 100 * 1024
344+
file.size < 1 * 1024 * 1024
345345
) {
346-
// 只读取小于100KB的文本文件
346+
// 只读取小于1MB的文本文件
347347
try {
348348
entry.content = await file.text();
349349
} catch (contentError) {

0 commit comments

Comments
 (0)