fix: log search error

pull/1082/head
herb 2022-03-21 13:33:37 +08:00
parent aa515545db
commit 5f54a7421f
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ export default {
const ts = data.match(/[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1]) (2[0-3]|[01][0-9]):[0-5][0-9]:[0-5][0-9]/gm)
return {
time: ts[0],
message: data.split(ts+": ")[1]
message: data.split(ts+": ")[1] || ''
}
},
cleanLog(l) {