From 5e095f5caa1eb3872d4f7b55f9ab8d176fa31593 Mon Sep 17 00:00:00 2001 From: Ben <43026681+bwp91@users.noreply.github.com> Date: Sat, 11 Nov 2023 23:04:09 +0000 Subject: [PATCH] Update log.service.ts --- ui/src/app/core/log.service.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ui/src/app/core/log.service.ts b/ui/src/app/core/log.service.ts index be4c507fc..8c5530d37 100644 --- a/ui/src/app/core/log.service.ts +++ b/ui/src/app/core/log.service.ts @@ -88,7 +88,7 @@ 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'); @@ -96,8 +96,7 @@ export class LogService { } } - // " \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;