From d7727c21586734f19d016fc84f94eaf0764eda34 Mon Sep 17 00:00:00 2001 From: alyx Date: Fri, 5 Apr 2024 11:36:56 -0400 Subject: html.lua functional --- src/theming/lua-lib/expect.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/theming/lua-lib/expect.lua') diff --git a/src/theming/lua-lib/expect.lua b/src/theming/lua-lib/expect.lua index f4cade7..9afbb49 100644 --- a/src/theming/lua-lib/expect.lua +++ b/src/theming/lua-lib/expect.lua @@ -94,7 +94,7 @@ end -- @throws If the field is not one of the allowed types. local function field(tbl, index, ...) expect(1, tbl, "table") - expect(2, index, "string") + expect(2, index, "string", "number") local value = tbl[index] local t = native_type(value) -- cgit v1.2.3-54-g00ecf