From c3a7b1af2fe249685faf70a27742b17c4222001d Mon Sep 17 00:00:00 2001 From: Patrick Stainbrook Date: Thu, 2 Nov 2023 00:22:13 +0100 Subject: [PATCH] fix: multiline replacment for special chars Signed-off-by: Patrick Stainbrook --- src/plugins/helpers.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plugins/helpers.ts b/src/plugins/helpers.ts index 813c8bf2e..8e0867f30 100644 --- a/src/plugins/helpers.ts +++ b/src/plugins/helpers.ts @@ -63,7 +63,9 @@ export const camelize = (str: string): string => { export function formatConsoleMessage(message: string): string { message = message.replace(/^!! /g, '') - message = message.replace(/\/\/ /g, '') + message = message.replace(/\n!! /g, '\n') + message = message.replace(/^\/\/ /g, '') + message = message.replace(/\n\/\/ /g, '\n') message = message.replace('\n// ', '
') message = message.replace(/\r\n|\r|\n/g, '
') //message = message.replaceAll('
', '
')