fix(ui): fix regex matching when parsing label from logs (#1231)

This commit is contained in:
Danshil Kokil Mungur
2021-03-20 02:47:11 +04:00
committed by GitHub
parent c1975b33f1
commit 4a00617fe4

View File

@@ -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(/\]\[.+\]/)) || [];
const label = line.match(new RegExp(/\]\[.+?\]/)) || [];
const message = line.match(new RegExp(/:\s([^{}]+)({.*})?/)) || [];
if (level.length && filter.includes(level[0].slice(2, -1))) {