diff options
author | tomsmeding <tom.smeding@gmail.com> | 2020-01-17 22:07:10 +0100 |
---|---|---|
committer | tomsmeding <tom.smeding@gmail.com> | 2020-01-17 22:07:10 +0100 |
commit | 6bf003fecc211f3a4ecd9aa1b0eba7e913e2bd08 (patch) | |
tree | 7663ed3f8b5816d8ce912e4b4d61f2da7c8dcd77 /modules/unicode | |
parent | 636595c3d4222e4ea8676c0d09d904a92d80d773 (diff) |
unicode: Truncate description search at 200 results
Diffstat (limited to 'modules/unicode')
-rw-r--r-- | modules/unicode/unicode.js | 1 |
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; } } |