Skip to content

Commit af6d5c9

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 e9dc9b8 commit af6d5c9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

TalentTreeViewer_TWW/IcyVeinsImport.lua

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

2729
--- @private

0 commit comments

Comments
 (0)