(fix/GenericTrigger) regex for weapon enchants

This commit is contained in:
NoM0Re 2025-05-13 23:42:40 +02:00 committed by GitHub
commit 9def6a5ab8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3358,7 +3358,7 @@ do
if(v:GetObjectType() == "FontString") then
local text = v:GetText();
if(text) then
local _, _, name, shortenedName = text:find("^((.-) ?+?[VI%d]*) %(%d+ .+%)$");
local _, _, name, shortenedName = text:find("^((.-) ?+?[XVI%d]*) %(%d+ .+%)$");
if(name) then
return name, shortenedName;
end