diff options
author | GitExample <git@example.com> | 2022-02-05 03:44:46 +0100 |
---|---|---|
committer | GitExample <git@example.com> | 2022-02-05 03:44:46 +0100 |
commit | 633433e14f0e6d489090aac81cbb27d05284055c (patch) | |
tree | 67a80ae7ac63b91de15e812f4cc65bc2cabe2cf3 /src/app/browser.js | |
parent | 5c7370a6b07a7914a7d16b853c3e92624849ba9d (diff) | |
download | Viper-633433e14f0e6d489090aac81cbb27d05284055c.tar.gz Viper-633433e14f0e6d489090aac81cbb27d05284055c.zip |
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.
Diffstat (limited to 'src/app/browser.js')
-rw-r--r-- | src/app/browser.js | 2 |
1 files changed, 1 insertions, 1 deletions
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) |