Merge pull request #123 from xahhy/fix/log-search-error

fix: log search error
pull/1101/head
Adam 2022-03-22 14:50:12 +00:00 committed by GitHub
commit b7ecf0c31b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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) {