Ignore milliseconds for date and time

This commit is contained in:
blankie 2023-03-31 12:51:36 +07:00
parent 454d23a975
commit cc4b4317e1
Signed by: blankie
GPG Key ID: CC15FC822C7F61F5
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@
#include "pcre2_wrapper.h" #include "pcre2_wrapper.h"
static const Pcre2Regex LogcatEntryRegex( 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 "(?: +([\\w\\d._-]+))?" // optional user
" +(\\d+)" // pid " +(\\d+)" // pid
" +(\\d+)" // tid " +(\\d+)" // tid