Skip to content

Commit

Permalink
Merge pull request #730 from Flamanis/Fix-realms-with-dashes
Browse files Browse the repository at this point in the history
Fix dashes and spaces in player realm name
  • Loading branch information
Tercioo authored May 20, 2024
2 parents 4a3def3 + e464dad commit ce74a53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/parser.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6200,7 +6200,7 @@ local SPELL_POWER_PAIN = SPELL_POWER_PAIN or (PowerEnum and PowerEnum.Pain) or 1

local _, _, _, toc = GetBuildInfo()
if (toc >= 100200) then
Details.playername = UnitName("player") .. "-" .. (GetRealmName():gsub("%s", ''))
Details.playername = UnitName("player") .. "-" .. (GetRealmName():gsub("[%s-]", ''))
else
Details.playername = UnitName("player")
end
Expand Down

0 comments on commit ce74a53

Please sign in to comment.