Originally Posted by YelloDello
Ah so that's what changed. Thanks.
Btw, I've noticed that if you call ZO_LinkHandler_ParseLink "too often" in a single execution, it seems to cause a crash to desktop. I'm not sure what the threshold is. The 1.1 version of ZO_LinkHandler_ParseLink did not cause the crash, even when I called it more than I do now. The new parselink must be more taxing with its string matching and splitting.
|
ZO_LinkHandler_ParseLink before patch:
Lua Code:
function ZO_LinkHandler_ParseLink(link)
if type(link) == "string" then
local color, data, text = link:match("|H(.-):(.-)|h(.-)|h")
return text, color, zo_strsplit(':', data)
end
end
After patch:
Lua Code:
function ZO_LinkHandler_ParseLink(link)
if type(link) == "string" then
local linkStyle, data, text = link:match("|H(.-):(.-)|h(.-)|h")
return text, linkStyle, zo_strsplit(':', data)
end
end
Is there such a big difference to cause crash to desktop?