From 6d578702982674185e8b2bef09d73b0228584d30 Mon Sep 17 00:00:00 2001 From: Wiwi Kuan Date: Sat, 30 Dec 2023 08:34:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=90=9C=E5=B0=8B=E6=99=82=E4=B9=9F=E8=A6=81?= =?UTF-8?q?=20.trim()?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 2afbabc..3bbdd43 100644 --- a/index.html +++ b/index.html @@ -92,7 +92,7 @@ // 搜尋每一行 for (var i = 0; i < lines.length; i++) { - if (lines[i][0].includes(input)) { + if (lines[i][0].includes(input.trim())) { matchingLines += lines[i][1] + '
'; } }