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

This commit is contained in:
Danshil Kokil Mungur
2021-03-19 19:30:19 +04:00
committed by GitHub
parent 8c51c28f54
commit 2d737f2760

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(/[^\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))) {