Skip to content
This repository has been archived by the owner on Jun 29, 2019. It is now read-only.

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
appetizermonster committed Nov 9, 2018
1 parent 7eea53e commit 298b0d7
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions app/main/plugins/hain-package-manager/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,12 @@ module.exports = (context) => {
function _fuzzy(cmdType, packages, keyword) {
if (keyword.length <= 0)
return packages.map((x) => _toSearchResult(cmdType, x));
return matchUtil.fuzzy(packages, keyword.trim(), (x) => x.name).map((x) => {
const m = matchUtil.makeStringBoldHtml(x.elem.name, x.matches);
return _toSearchResult(cmdType, x.elem, m);
});
return matchUtil
.fuzzy(packages, keyword.trim(), (x) => x.name)
.map((x) => {
const m = matchUtil.makeStringBoldHtml(x.elem.name, x.matches);
return _toSearchResult(cmdType, x.elem, m);
});
}

function parseCommands(query) {
Expand Down

0 comments on commit 298b0d7

Please sign in to comment.