From 620176263a2a2a6f2dac2940a50392e7c8bc71d1 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sat, 17 Sep 2022 22:56:11 -0700 Subject: bugfix: log filenames can have 2 formats --- log_browser.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/log_browser.lua b/log_browser.lua index f65117f..5438584 100644 --- a/log_browser.lua +++ b/log_browser.lua @@ -27,7 +27,10 @@ log_browser = {} function log_browser.parse(State) for _,line in ipairs(State.lines) do if line.data ~= '' then - line.filename, line.line_number, line.data = line.data:match('%[string "([^:]*)"%]:([^:]*):%s*(.*)') + line.filename, line.line_number, line.data = line.data:match('([^:]*):([^:]*):%s*(.*)') + if line.filename == nil then + line.filename, line.line_number, line.data = line.data:match('%[string "([^:]*)"%]:([^:]*):%s*(.*)') + end line.filename = guess_source(line.filename) line.line_number = tonumber(line.line_number) if line.data:sub(1,1) == '{' then -- cgit 1.4.1-2-gfad0