Skip to content

Commit 851cbba

Browse files
authored
Merge pull request #74 from RKBoss6/AuthorSearch
Add search by author
2 parents 0d4d331 + 40d3227 commit 851cbba

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

js/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -680,6 +680,7 @@ function refreshLibrary(options) {
680680
Utils.searchRelevance(app.name, searchValue)*(app.shortName?1:2) +
681681
(app.shortName?Utils.searchRelevance(app.shortName, searchValue):0) + // if we have shortname, match on that as well
682682
Utils.searchRelevance(app.description, searchValue)/5 + // match on description, but pay less attention
683+
(app.author?Utils.searchRelevance(app.author, searchValue)/3:0)+ //match by author, but less attention as well
683684
((app.tags && app.tags.includes(searchValue))?10:0)
684685
}));
685686
} else {

0 commit comments

Comments
 (0)