From 5f731ddb513b7b8b08d0ee348dfb241f09f8a566 Mon Sep 17 00:00:00 2001 From: hjpalpha <75081997+hjpalpha@users.noreply.github.com> Date: Mon, 15 Jan 2024 11:07:13 +0100 Subject: [PATCH] catch non strings for string match (#3797) --- components/infobox/commons/infobox_league.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/infobox/commons/infobox_league.lua b/components/infobox/commons/infobox_league.lua index d0244604cce..c2bdb11fba6 100644 --- a/components/infobox/commons/infobox_league.lua +++ b/components/infobox/commons/infobox_league.lua @@ -215,7 +215,7 @@ function League:createInfobox() Title{name = 'Chronology'}, Chronology{ content = Table.filterByKey(args, function(key) - return key:match('^previous%d?$') ~= nil or key:match('^next%d?$') ~= nil + return type(key) == 'string' and (key:match('^previous%d?$') ~= nil or key:match('^next%d?$') ~= nil) end) } }