From 85c22356dab6fee89d16c20b139ef380e37f7634 Mon Sep 17 00:00:00 2001 From: QartemisT Date: Thu, 2 Jan 2025 03:35:05 +0000 Subject: [PATCH] Substr properly --- js/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/index.js b/js/index.js index d61ccb0..1d29355 100644 --- a/js/index.js +++ b/js/index.js @@ -199,9 +199,9 @@ const sanityText = (cacheData, text, overrideSpellID, spellMultiplier) => { matchFF = " (Other) " + matchFF; } let out = " "; - out += "(" + diffz + ") " + matchT.substring(1, matchT.length - 2); + out += "(" + diffz + ") " + matchT.substring(1, matchT.length - 1); if (diffz2 !== "") { - out += " (" + diffz2 + ") " + matchT2.substring(1, matchT2.length - 2); + out += " (" + diffz2 + ") " + matchT2.substring(1, matchT2.length - 1); } out += matchFF + ""; return out;