refactor: add performance improvement suggestion for filterDiff regex in exclusions.json

This commit is contained in:
2026-05-13 02:23:30 +00:00
parent 7616dd1816
commit 8872e7366a
+5
View File
@@ -238,5 +238,10 @@
"role": "Aria",
"location": "app/main.js",
"suggestion": "在 main.js 中,表達式 repoDir。"
},
{
"role": "Zara",
"location": "app/gitea.js:L20-L21",
"suggestion": "將 filterDiff 中的正規表達式比對(RegExp.match)替換為 String.startsWith 是一個重要的效能改進。startsWith 是一個更輕量且高效的字串操作,尤其在處理大型 Git Diff 內容時,此修改已顯著提升過濾效率。"
}
]