diff options
author | GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> | 2023-05-16 01:49:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-16 01:49:34 +0200 |
commit | 475ca987668a9e055e18b1e955714bd84bbc117c (patch) | |
tree | e270c46d7e041999b7e34edaff87802ba8d9117a /src-vue/src/views/mods | |
parent | c178623d47d99184d4c561589c501bdb3d6db15c (diff) | |
download | FlightCore-475ca987668a9e055e18b1e955714bd84bbc117c.tar.gz FlightCore-475ca987668a9e055e18b1e955714bd84bbc117c.zip |
fix: Add missing fuzzy filter for local mods search (#360)
Diffstat (limited to 'src-vue/src/views/mods')
-rw-r--r-- | src-vue/src/views/mods/LocalModsView.vue | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src-vue/src/views/mods/LocalModsView.vue b/src-vue/src/views/mods/LocalModsView.vue index 00e1ff43..cbea7a33 100644 --- a/src-vue/src/views/mods/LocalModsView.vue +++ b/src-vue/src/views/mods/LocalModsView.vue @@ -39,6 +39,7 @@ import { defineComponent } from 'vue'; import { GameInstall } from '../../utils/GameInstall'; import { NorthstarMod } from "../../../../src-tauri/bindings/NorthstarMod"; import { showErrorNotification, showNotification } from '../../utils/ui'; +import { fuzzy_filter } from "../../utils/filter"; export default defineComponent({ name: 'LocalModsView', @@ -55,7 +56,7 @@ export default defineComponent({ } return this.installedMods.filter((mod: NorthstarMod) => { - return mod.name.toLowerCase().includes(this.searchValue); + return fuzzy_filter(mod.name, this.searchValue); }); } }, |