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

pull/340/MERGE
墨苒孤 2026-04-01 19:17:36 +08:00 committed by GitHub
parent 4e0968d4b7
commit 80d6e2255f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

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