From 6bf003fecc211f3a4ecd9aa1b0eba7e913e2bd08 Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Fri, 17 Jan 2020 22:07:10 +0100 Subject: unicode: Truncate description search at 200 results --- modules/unicode/unicode.js | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/unicode/unicode.js b/modules/unicode/unicode.js index d3e7fb9..db681c4 100644 --- a/modules/unicode/unicode.js +++ b/modules/unicode/unicode.js @@ -75,6 +75,7 @@ function searchDescription(text) { for (const row of db.values()) { if (row[fNAME].includes(text)) { result.push(row); + if (result.length >= 200) break; } } -- cgit v1.2.3