Skip to content

Commit

Permalink
fix(console): trim output to remove spaces at first char
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Dej <[email protected]>
  • Loading branch information
meteyou committed Jul 30, 2024
1 parent e75a7aa commit 320e663
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@ export function formatConsoleMessage(message: string): string {
message = message.replace(/\n\/\/ /g, '\n')
// remove echo
message = message.replace(/^echo:/g, '')
message = message.replace(/^echo: /g, '')
// replace linebreaks with html <br>
message = message.replace('\n// ', '<br>')
message = message.replace(/\r\n|\r|\n/g, '<br>')
return message

return message.trim()
}

export const convertName = (name: string): string => {
Expand Down

0 comments on commit 320e663

Please sign in to comment.