From ca857cdf1ac1e32cf130ae5d771f89a146c6346f Mon Sep 17 00:00:00 2001 From: Brandon Dyck Date: Thu, 18 Jul 2024 00:46:06 -0600 Subject: [PATCH] Allow zero-length csexp atoms --- assets/.lua/csexp.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/.lua/csexp.lua b/assets/.lua/csexp.lua index b321b30..41d3b69 100644 --- a/assets/.lua/csexp.lua +++ b/assets/.lua/csexp.lua @@ -17,7 +17,7 @@ local function _parse(str, init) end else local pos = init - local len_str = string.match(str, "^[1-9]%d*", pos) + local len_str = string.match(str, "^%d+", pos) if not len_str then error(string.format("expected '(' or atom at index %d", pos)) end