about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--log_browser.lua5
1 files changed, 4 insertions, 1 deletions
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