From 4139936eed6ef57d634c7de93de64edb188f5ea0 Mon Sep 17 00:00:00 2001 From: zouap Date: Mon, 14 Mar 2022 11:50:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zouap --- routers/search.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/search.go b/routers/search.go index c67950bca..11d5c548a 100644 --- a/routers/search.go +++ b/routers/search.go @@ -370,7 +370,7 @@ func replaceIngoreUpperOrLower(dest string, destLower string, keywordLower strin if destLower[i] == keywordLower[0] { isFind := true for j := 1; j < lenkeywordLower; j++ { - if keywordLower[j] != destLower[i+j] && (i+j) < lenDestLower { + if (i+j) < lenDestLower && keywordLower[j] != destLower[i+j] { isFind = false break }