From cc4b4317e10d9db1e4f8735a1eb878d63d29b95f Mon Sep 17 00:00:00 2001 From: blankie Date: Fri, 31 Mar 2023 12:51:36 +0700 Subject: [PATCH] Ignore milliseconds for date and time --- logcat_entry.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logcat_entry.cpp b/logcat_entry.cpp index e22f6f5..cc1613b 100644 --- a/logcat_entry.cpp +++ b/logcat_entry.cpp @@ -8,7 +8,7 @@ #include "pcre2_wrapper.h" static const Pcre2Regex LogcatEntryRegex( - "^ *(?:(\\d+)(?:\\.\\d+)?|(\\d{4,})-(\\d{2})-(\\d{2}) (\\d{2}):(\\d{2}):(\\d{2}))" // time and date + "^ *(?:(\\d+)|(\\d{4,})-(\\d{2})-(\\d{2}) (\\d{2}):(\\d{2}):(\\d{2}))(?:\\.\\d+)?" // time and date "(?: +([\\w\\d._-]+))?" // optional user " +(\\d+)" // pid " +(\\d+)" // tid