Skip to content

Commit

Permalink
fix parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
sitaradev committed Jul 14, 2023
1 parent e9cbe9f commit 5590368
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/components/Channel/Chat/Message.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@
}
const parse = (msg: string) => {
return msg.replace(/@[\w-]+[,\s]/g, hightlightUsername)
const m = msg + " "
return m.replace(/@[\w-]+[,\s]/g, hightlightUsername).trim()
}
onMount(() => {
Expand Down

0 comments on commit 5590368

Please sign in to comment.