Skip to content

Commit 19e0cfb

Browse files
committed
Added support for Icy-Veins.com Midnight talent calculator links (see https://www.icy-veins.com/wow/midnight-talent-calculator)
1 parent 94acd3d commit 19e0cfb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/IcyVeinsImport.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ IcyVeinsImport.bitWidthNodeIndex = 6;
1717
--- @public
1818
function IcyVeinsImport:IsTalentUrl(text)
1919
-- example URL https://www.icy-veins.com/wow/the-war-within-talent-calculator#seg1-seg2-seg3-seg4-seg5
20-
return not not text:match('^https?://www%.icy%-veins%.com/wow/the%-war%-within%-talent%-calculator%#[^-]*%-[^-]*%-[^-]*%-[^-]*%-[^-]*$');
20+
-- example URL https://www.icy-veins.com/wow/midnight-talent-calculator#seg1-seg2-seg3-seg4-seg5
21+
return not not text:match('^https?://www%.icy%-veins%.com/wow/the%-war%-within%-talent%-calculator%#[^-]*%-[^-]*%-[^-]*%-[^-]*%-[^-]*$')
22+
or not not text:match('^https?://www%.icy%-veins%.com/wow/midnight%-talent%-calculator%#[^-]*%-[^-]*%-[^-]*%-[^-]*%-[^-]*$');
2123
end
2224

2325
--- @param fullUrl string

0 commit comments

Comments
 (0)