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 11, 2023
1 parent 75681e0 commit 5e095f5
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 @@ -88,16 +88,15 @@ export class LogService {
this.term.write(line + '\r');
console.log('line', line);
if (includeNextLine) {
if (line.match(/ \u001b\[39m\u001b\[36m\[.*?]\u001b\[39m /)) {
if (line.match(/36m\[.*?]/)) {
includeNextLine = false;
} else {
this.term.write(line + '\r');
return;
}
}

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

0 comments on commit 5e095f5

Please sign in to comment.