Skip to content

Commit

Permalink
Spell tooltips random space
Browse files Browse the repository at this point in the history
  • Loading branch information
QartemisT committed May 10, 2024
1 parent fd364c9 commit 189ffed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ const sanityText = (cacheData, text, overrideSpellID, spellMultiplier) => {
}
let prevSpellID, lastVar;
text = text.replaceAll(/\$bullet;/ig, "<br>&bull; "); // New line
text = text.replaceAll(/\|cFF([a-z\d]+)\|Hspell:(\d+)[\s.]*\|h([^|]+)\|h\|r/ig, " <a style=\"color: #$1;\" href=\"https://" + builds[selectedBuild].link + "/spell=$2\" data-wowhead=\"spell-$2\">$3</a>"); // Spell tooltips
text = text.replaceAll(/\|cFF([a-z\d]+)\|Hspell:\s?(\d+)[\s.]*\|h([^|]+)\|h\|r/ig, " <a style=\"color: #$1;\" href=\"https://" + builds[selectedBuild].link + "/spell=$2\" data-wowhead=\"spell-$2\">$3</a>"); // 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()]) {
Expand Down

0 comments on commit 189ffed

Please sign in to comment.