fix: make search case-insensitive (#7689) (#7755)

This commit is contained in:
墨苒孤
2026-04-01 19:17:36 +08:00
committed by GitHub
parent 4e0968d4b7
commit 80d6e2255f

View File

@@ -47,6 +47,8 @@ function search(searchKey: string) {
searchResults.value = [];
return;
}
// 将搜索关键词转换为小写,确保大小写不敏感的搜索
searchKey = searchKey.toLowerCase();
// 使用搜索关键词创建正则表达式
const reg = createSearchReg(searchKey);