From 13490a34c872f5cde6b2f094d9dda045dec066d4 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Thu, 14 Sep 2017 19:45:36 -0700 Subject: Made repr fix more flexible/correct. --- utils.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils.lua') diff --git a/utils.lua b/utils.lua index bb5005d..548ce0d 100644 --- a/utils.lua +++ b/utils.lua @@ -48,7 +48,7 @@ utils = { else for i = 0, math.huge do local eq = ("="):rep(i) - if not x:find("%[" .. tostring(eq) .. "%[") and not x:find("%]" .. tostring(eq) .. "%]") then + if not x:find("%]" .. tostring(eq) .. "%]") and not x:match(".*]" .. tostring(eq) .. "$") then if x:sub(1, 1) == "\n" then return "[" .. tostring(eq) .. "[\n" .. x .. "]" .. tostring(eq) .. "]" else -- cgit v1.2.3