aboutsummaryrefslogtreecommitdiff
path: root/src/app
diff options
context:
space:
mode:
authorGitExample <git@example.com>2022-02-05 03:44:46 +0100
committerGitExample <git@example.com>2022-02-05 03:44:46 +0100
commit633433e14f0e6d489090aac81cbb27d05284055c (patch)
tree67a80ae7ac63b91de15e812f4cc65bc2cabe2cf3 /src/app
parent5c7370a6b07a7914a7d16b853c3e92624849ba9d (diff)
downloadViper-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')
-rw-r--r--src/app/browser.js2
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)