fix(ui): better regex matching when parsing logs (#1225)

pull/1226/head
Danshil Kokil Mungur 4 years ago committed by GitHub
parent 8c51c28f54
commit 2d737f2760
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -270,7 +270,7 @@ settingsRoutes.get(
const timestamp = line.match(new RegExp(/^.{24}/)) || [];
const level = line.match(new RegExp(/\s\[\w+\]/)) || [];
const label = line.match(new RegExp(/[^\s]\[\w+\s*\w*\]/)) || [];
const label = line.match(new RegExp(/\]\[.+\]/)) || [];
const message = line.match(new RegExp(/:\s([^{}]+)({.*})?/)) || [];
if (level.length && filter.includes(level[0].slice(2, -1))) {

Loading…
Cancel
Save