From 3b98b00b3d915f9906454531f0417b5747fe60ea Mon Sep 17 00:00:00 2001 From: RKBoss6 Date: Fri, 17 Oct 2025 13:24:02 -0400 Subject: [PATCH 1/2] Add author search --- js/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/index.js b/js/index.js index 549fd4b..c72dd37 100644 --- a/js/index.js +++ b/js/index.js @@ -680,6 +680,7 @@ function refreshLibrary(options) { Utils.searchRelevance(app.name, searchValue)*(app.shortName?1:2) + (app.shortName?Utils.searchRelevance(app.shortName, searchValue):0) + // if we have shortname, match on that as well Utils.searchRelevance(app.description, searchValue)/5 + // match on description, but pay less attention + Utils.searchRelevance(app.author, searchValue)/3+ //match by author, but less attention as well ((app.tags && app.tags.includes(searchValue))?10:0) })); } else { From 096a012f575e43e51acc4c9654aa65c4e860f47e Mon Sep 17 00:00:00 2001 From: RKBoss6 Date: Fri, 17 Oct 2025 13:54:07 -0400 Subject: [PATCH 2/2] Guard against undefined author --- js/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/index.js b/js/index.js index c72dd37..db38810 100644 --- a/js/index.js +++ b/js/index.js @@ -680,7 +680,7 @@ function refreshLibrary(options) { Utils.searchRelevance(app.name, searchValue)*(app.shortName?1:2) + (app.shortName?Utils.searchRelevance(app.shortName, searchValue):0) + // if we have shortname, match on that as well Utils.searchRelevance(app.description, searchValue)/5 + // match on description, but pay less attention - Utils.searchRelevance(app.author, searchValue)/3+ //match by author, but less attention as well + (app.author?Utils.searchRelevance(app.author, searchValue)/3:0)+ //match by author, but less attention as well ((app.tags && app.tags.includes(searchValue))?10:0) })); } else {