from retail
This commit is contained in:
@@ -205,6 +205,7 @@ local function CreateNameOptions(aura_options, data, trigger, size, isExactSpell
|
||||
end,
|
||||
validate = isExactSpellId and WeakAuras.ValidateNumeric or nil,
|
||||
control = "WeakAurasInputFocus",
|
||||
getWithFocus = function() return trigger[optionKey] and trigger[optionKey][i] or "" end
|
||||
}
|
||||
end
|
||||
-- VALIDATE ?
|
||||
|
||||
@@ -721,6 +721,12 @@ local function replaceNameDescFuncs(intable, data, subOption)
|
||||
if(type(display) == "number") then
|
||||
display = math.floor(display * 100) / 100;
|
||||
else
|
||||
local nullBytePos = display:find("\0", nil, true)
|
||||
|
||||
if nullBytePos then
|
||||
display = display:sub(1, nullBytePos - 1)
|
||||
end
|
||||
|
||||
if #display > 50 then
|
||||
display = display:sub(1, 50) .. "..."
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user