Skip to content

Commit

Permalink
fix: multiline replacment for special chars
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Stainbrook <[email protected]>
  • Loading branch information
rackrick committed Nov 1, 2023
1 parent db28962 commit c3a7b1a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/plugins/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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// ', '<br>')
message = message.replace(/\r\n|\r|\n/g, '<br>')
//message = message.replaceAll('<br />', '<br>')
Expand Down

0 comments on commit c3a7b1a

Please sign in to comment.