From d8ec2d884f1b566406f0ef809d6dc6dade671b37 Mon Sep 17 00:00:00 2001 From: Engineer Smith <56016593+EngineerSmith@users.noreply.github.com> Date: Fri, 21 Nov 2025 17:41:18 +0000 Subject: [PATCH] Fix: Simplify traceback line parsing pattern --- src/modules/love/callbacks.lua | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/modules/love/callbacks.lua b/src/modules/love/callbacks.lua index 94c9eb88f..8d0926a83 100644 --- a/src/modules/love/callbacks.lua +++ b/src/modules/love/callbacks.lua @@ -273,12 +273,8 @@ function love.errorhandler(msg) end table.insert(err, "\n") - - if trace:sub(-1) ~= "\n" then - trace = trace .. "\n" - end - for l in trace:gmatch("(.-)\n") do + for l in trace:gmatch("([^\n]+)") do if not l:match("boot.lua") then l = l:gsub("stack traceback:", "Traceback\n") table.insert(err, l)