- 在搜索功能中添加了对软件包 ID 的搜索支持 - 优化了搜索逻辑,提高了搜索的准确性和范围
@@ -293,7 +293,9 @@
(pkg) =>
pkg.name.toLowerCase().includes(query) ||
pkg.author.toLowerCase().includes(query) ||
- (pkg.description && pkg.description.toLowerCase().includes(query))
+ (pkg.description &&
+ pkg.description.toLowerCase().includes(query)) ||
+ pkg.id.toLowerCase().includes(query)
);
renderApps(filtered);
});