(fix/GenericTrigger) regex for weapon enchants
This commit is contained in:
@@ -3358,7 +3358,7 @@ do
|
|||||||
if(v:GetObjectType() == "FontString") then
|
if(v:GetObjectType() == "FontString") then
|
||||||
local text = v:GetText();
|
local text = v:GetText();
|
||||||
if(text) then
|
if(text) then
|
||||||
local _, _, name, shortenedName = text:find("^((.-) ?+?[VI%d]*) %(%d+ .+%)$");
|
local _, _, name, shortenedName = text:find("^((.-) ?+?[XVI%d]*) %(%d+ .+%)$");
|
||||||
if(name) then
|
if(name) then
|
||||||
return name, shortenedName;
|
return name, shortenedName;
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user