mirror of
https://github.com/sct/overseerr.git
synced 2025-09-17 17:24:35 +02:00
fix(ui): better regex matching when parsing logs (#1225)
This commit is contained in:

committed by
GitHub

parent
8c51c28f54
commit
2d737f2760
@@ -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))) {
|
||||
|
Reference in New Issue
Block a user