Skip to content

Commit

Permalink
Update log.service.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
bwp91 committed Nov 12, 2023
1 parent dc3ed22 commit a40c883
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ui/src/app/core/log.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,18 +85,17 @@ export class LogService {
let includeNextLine = false;

lines.forEach((line) => {
this.term.write(line + '\r');
console.log('line', line);
if (includeNextLine) {
if (line.match(/\[.*?]/)) {
if (line.match(/36m\[.*?]/)) {
includeNextLine = false;
} else {
this.term.write(line + '\r');
return;
}
}

if (line.includes(`[${this.pluginName}]`)) {
if (line.includes(`[36m[${this.pluginName}]`)) {
console.log('match', line);
this.term.write(line + '\r');
includeNextLine = true;
Expand Down

0 comments on commit a40c883

Please sign in to comment.