change format file

This commit is contained in:
joseph le 2023-09-11 09:45:30 +07:00
parent c81cca57e5
commit 6d5fac3008
1 changed files with 5 additions and 3 deletions

View File

@ -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(