diff options
Diffstat (limited to 'log_browser.lua')
-rw-r--r-- | log_browser.lua | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/log_browser.lua b/log_browser.lua index f65117f..91f02eb 100644 --- a/log_browser.lua +++ b/log_browser.lua @@ -27,7 +27,14 @@ 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*(.*)') + local rest + line.filename, line.line_number, rest = line.data:match('%[string "([^:]*)"%]:([^:]*):%s*(.*)') + if line.filename == nil then + line.filename, line.line_number, rest = line.data:match('([^:]*):([^:]*):%s*(.*)') + end + if rest then + line.data = rest + end line.filename = guess_source(line.filename) line.line_number = tonumber(line.line_number) if line.data:sub(1,1) == '{' then |