change format file
This commit is contained in:
parent
c81cca57e5
commit
6d5fac3008
|
|
@ -92,7 +92,9 @@ Route.get("/api/log/showLog/:name?", async ({ request, response }) => {
|
|||
listKeyValues
|
||||
.map((obj) => obj.$original.value)
|
||||
.map(async (value) => {
|
||||
if (line.search(value) !== -1) {
|
||||
if (line.search(value) !== -1 &&
|
||||
listExcludeErr.filter((err) => line.includes(err))
|
||||
.length === 0) {
|
||||
data[index] =
|
||||
data[index].slice(0, data[index].search(value)) +
|
||||
"<span style='background-color:yellow;'>" +
|
||||
|
|
@ -104,9 +106,9 @@ Route.get("/api/log/showLog/:name?", async ({ request, response }) => {
|
|||
});
|
||||
});
|
||||
listLine.map((u) => {
|
||||
if (listExcludeErr.filter((err) => data[u - 1].includes(err)).length === 0) {
|
||||
// if (listExcludeErr.filter((err) => data[u - 1].includes(err)).length === 0) {
|
||||
detectedLines.push(data[u - 1]);
|
||||
}
|
||||
// }
|
||||
});
|
||||
// console.log(data)
|
||||
response.send(
|
||||
|
|
|
|||
Loading…
Reference in New Issue