From 4bbc067bc80bb1b42f039062f628cf0ff871d7a7 Mon Sep 17 00:00:00 2001 From: hjpalpha <75081997+hjpalpha@users.noreply.github.com> Date: Sun, 24 Nov 2024 15:09:36 +0100 Subject: [PATCH] feat(matchTable): support redirected pages that are not set in the team templates --- components/match_table/commons/match_table.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/match_table/commons/match_table.lua b/components/match_table/commons/match_table.lua index 255243b7ae3..60f22c2e3db 100644 --- a/components/match_table/commons/match_table.lua +++ b/components/match_table/commons/match_table.lua @@ -244,8 +244,12 @@ function MatchTable:getOpponentAliases(mode, opponent) Array.forEach(opponentNames, function(name) name = name:gsub(' ', '_') local nameWithSpaces = name:gsub('_', ' ') + local pagifiedName = Page.pageifyLink(name) + local pagifiedNameWithSpaces = pagifiedName:gsub('_', ' ') aliases[name] = true aliases[nameWithSpaces] = true + aliases[pagifiedName] = true + aliases[pagifiedNameWithSpaces] = true end) return aliases