summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2020-01-17 22:07:10 +0100
committertomsmeding <tom.smeding@gmail.com>2020-01-17 22:07:10 +0100
commit6bf003fecc211f3a4ecd9aa1b0eba7e913e2bd08 (patch)
tree7663ed3f8b5816d8ce912e4b4d61f2da7c8dcd77 /modules
parent636595c3d4222e4ea8676c0d09d904a92d80d773 (diff)
unicode: Truncate description search at 200 results
Diffstat (limited to 'modules')
-rw-r--r--modules/unicode/unicode.js1
1 files changed, 1 insertions, 0 deletions
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;
}
}