From 475ca987668a9e055e18b1e955714bd84bbc117c Mon Sep 17 00:00:00 2001 From: GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> Date: Tue, 16 May 2023 01:49:34 +0200 Subject: fix: Add missing fuzzy filter for local mods search (#360) --- src-vue/src/views/mods/LocalModsView.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); }); } }, -- cgit v1.2.3