mirror of
https://github.com/ivabus/gui
synced 2025-06-07 15:50:27 +03:00
remove string-similarity
This commit is contained in:
parent
0660a4efc8
commit
e8815faa45
2 changed files with 3 additions and 8 deletions
|
@ -42,14 +42,6 @@
|
|||
packages = allPackages;
|
||||
}
|
||||
};
|
||||
|
||||
function getMatchScore(term: string, pkg: Package) {
|
||||
// provide higher value with name
|
||||
const { full_name, desc } = pkg;
|
||||
const nameScore = stringSimilarity.compareTwoStrings(full_name, term);
|
||||
const descriptionScore = stringSimilarity.compareTwoStrings(desc, term);
|
||||
return nameScore * 80 + descriptionScore * 20;
|
||||
}
|
||||
</script>
|
||||
|
||||
<div class="bg-black border border-gray">
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
module.exports = {
|
||||
root: true,
|
||||
globals: {
|
||||
NodeJS: true
|
||||
},
|
||||
parser: '@typescript-eslint/parser',
|
||||
extends: [
|
||||
'eslint:recommended',
|
||||
|
|
Loading…
Reference in a new issue