搜尋時也要 .trim()

This commit is contained in:
Wiwi Kuan
2023-12-30 08:34:04 +08:00
committed by GitHub
parent 39e7a8f568
commit 6d57870298

View File

@@ -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] + '<br>';
}
}