From 633433e14f0e6d489090aac81cbb27d05284055c Mon Sep 17 00:00:00 2001 From: GitExample Date: Sat, 5 Feb 2022 03:44:46 +0100 Subject: fix some mods appearing as uninstalled in browser The normalizer function didn't quite account for everything, which, it still doesn't, however given that I hope most developer don't use obnoxious characters in their mod names this should be fine. --- src/app/browser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/app/browser.js b/src/app/browser.js index dda0441..a9a36f9 100644 --- a/src/app/browser.js +++ b/src/app/browser.js @@ -134,7 +134,7 @@ ipcRenderer.on("installedmod", (event, modname) => { function normalize(items) { let main = (string) => { - return string.replaceAll(" ", "").replaceAll(".", "").toLowerCase() + return string.replaceAll(" ", "").replaceAll(".", "").replaceAll("-", "").replaceAll("_", "").toLowerCase() } if (typeof items == "string") { return main(items) -- cgit v1.2.3