Quantcast

Fix 2-word realms in guild datatext.

Darth Predator [05-12-17 - 21:17]
Fix 2-word realms in guild datatext.
this fixes #469
Filename
ElvUI_SLE/modules/sledatatexts/guild.lua
diff --git a/ElvUI_SLE/modules/sledatatexts/guild.lua b/ElvUI_SLE/modules/sledatatexts/guild.lua
index 49d9d9f..1c42aa5 100644
--- a/ElvUI_SLE/modules/sledatatexts/guild.lua
+++ b/ElvUI_SLE/modules/sledatatexts/guild.lua
@@ -9,7 +9,7 @@ local LDB = LibStub("LibDataBroker-1.1"):NewDataObject("S&L Guild",
 	text	= "S&L Guild"
 })
 local _G = _G
-local MyRealm = E.myrealm
+local MyRealm = T.gsub(E.myrealm,'[%s%-]','')
 local frame = CreateFrame("frame")

 local tooltip