Skip to content

Commit

Permalink
Fix another diff case
Browse files Browse the repository at this point in the history
  • Loading branch information
QartemisT committed Apr 18, 2024
1 parent 00c4cff commit b825418
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 @@ -166,7 +166,7 @@ const sanityText = (cacheData, text, overrideSpellID, spellMultiplier) => {
text = text.replaceAll(/\$?@?spellaura(\d+)/ig, (_, spellID) => // SpellAura variable
sanityText(cacheData, cacheData.spell[spellID]?.AuraDescription_lang, spellID, spellMultiplier)
);
text = text.replaceAll(/\$\?((?:(?:\$\?)?diff[\d|]+?)+)(?:[\s\n\r]+)?(\[[^\]]+]|\[])(\?((?:diff[\d|]+?)+)(?:[\s\n\r]+)?(\[[^\]]+]|\[]))?(\[[^\]]+]|\[])/ig, (_1, diffs, matchT, _2, diffs2, matchT2, matchF) => {
text = text.replaceAll(/\$\?((?:(?:\$\?)?diff[\d|]+?)+)(?:[\s\n\r]+)?(\[[^\]]+]|\[])(?:[\s\n\r]+)?(\?((?:diff[\d|]+?)+)(?:[\s\n\r]+)?(\[[^\]]+]|\[]))?(\[[^\]]+]|\[])/ig, (_1, diffs, matchT, _2, diffs2, matchT2, matchF) => {
if (selectedDifficulty === "all") {
let diffz = "";
for (const diff of diffs.split("|")) {
Expand Down

0 comments on commit b825418

Please sign in to comment.