From 4f1fa51222b75cef5a638945129429f380be0f85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Wed, 27 Jan 2021 18:57:07 +0800 Subject: =?UTF-8?q?=E6=9A=82=E6=97=B6=E4=B8=8D=E8=A6=81=E8=BF=99=E4=B8=AA?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script/core/matchkey.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/core/matchkey.lua b/script/core/matchkey.lua index 24e1ca41..b504fb1d 100644 --- a/script/core/matchkey.lua +++ b/script/core/matchkey.lua @@ -13,7 +13,7 @@ return function (input, other, fast) if lMe == lOther:sub(1, #lMe) then return true end - if (fast or #input == 1) and input:sub(1, 1) ~= other:sub(1, 1) then + if fast and input:sub(1, 1) ~= other:sub(1, 1) then return false end local chars = {} -- cgit v1.2.3