Skip to content

Commit

Permalink
Substr properly
Browse files Browse the repository at this point in the history
  • Loading branch information
QartemisT committed Jan 2, 2025
1 parent c9b2370 commit 85c2235
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,9 @@ const sanityText = (cacheData, text, overrideSpellID, spellMultiplier) => {
matchFF = "<b> (Other) </b>" + matchFF;
}
let out = "<i> ";
out += "<b>(" + diffz + ") </b>" + matchT.substring(1, matchT.length - 2);
out += "<b>(" + diffz + ") </b>" + matchT.substring(1, matchT.length - 1);
if (diffz2 !== "") {
out += " <b>(" + diffz2 + ") </b>" + matchT2.substring(1, matchT2.length - 2);
out += " <b>(" + diffz2 + ") </b>" + matchT2.substring(1, matchT2.length - 1);
}
out += matchFF + "</i>";
return out;
Expand Down

0 comments on commit 85c2235

Please sign in to comment.