diff --git a/js/index.js b/js/index.js
index b1c4b46..e125a13 100644
--- a/js/index.js
+++ b/js/index.js
@@ -131,7 +131,7 @@ const sanityText = (cacheData, text, overrideSpellID, spellMultiplier) => {
}
let prevSpellID, lastVar;
text = text.replaceAll(/\$bullet;/ig, "
• "); // New line
- text = text.replaceAll(/\|cFF([a-z\d]+)\|Hspell:(\d+)[\s.]*\|h([^|]+)\|h\|r/ig, " $3"); // Spell tooltips
+ text = text.replaceAll(/\|cFF([a-z\d]+)\|Hspell:\s?(\d+)[\s.]*\|h([^|]+)\|h\|r/ig, " $3"); // Spell tooltips
text = text.replaceAll(/\$\[[\d, ]+(?:[\s\n\r]+)?(.*?)\$]/g, (_, diffs, txt) => { // Difficulty specific
for (const diff of diffs.split(",")) {
if (selectedDifficulty === "all" || difficulties[selectedDifficulty][diff.trim()]) {