We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a3a038f commit 6ae7ea1Copy full SHA for 6ae7ea1
1 file changed
src/js/index.js
@@ -3121,10 +3121,14 @@ function search() {
3121
function getNavKeyword(val) {
3122
const results = [];
3123
if (val) {
3124
+ const lowVal = val.toLowerCase();
3125
for (const ele of curNavList) {
3126
const { url, title, des } = ele;
- if (url.includes(val) || title.includes(val) || des.includes(val)) {
3127
- //! 区分大小写
+ const lowUrl = url.toLowerCase();
3128
+ const lowTitle = title.toLowerCase();
3129
+ const lowDes = des.toLowerCase();
3130
+ if (lowUrl.includes(lowVal) || lowTitle.includes(lowVal) || lowDes.includes(lowVal)) {
3131
+ //! 不区分大小写
3132
let eq = false;
3133
for (const item of results) {
3134
if (isEqual(item, ele)) {
0 commit comments