mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 22:34:45 +00:00
Show all search results, each with max of 3 lines
This commit is contained in:
parent
9662b4b11d
commit
956d07f179
2 changed files with 8 additions and 6 deletions
|
@ -96,11 +96,7 @@
|
|||
?.textContent?.toLowerCase()
|
||||
?.replace(/\s+/g, "");
|
||||
|
||||
if (
|
||||
totalResults < 5 &&
|
||||
(entryName.includes(text) ||
|
||||
entrySignature?.includes(text.replace(/\s+/g, "")))
|
||||
) {
|
||||
if ((entryName.includes(text) || entrySignature?.includes(text.replace(/\s+/g, "")))) {
|
||||
totalResults++;
|
||||
entry.classList.remove("hidden");
|
||||
if (topSearchResultListItem === undefined) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue