From 769f30e13549338ffd2a55276d962b439458b698 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20=C5=BBegle=C5=84?= Date: Fri, 2 Oct 2020 11:05:52 +0200 Subject: [PATCH] Use regex instead of string to replace all "\n" occurences (#736) * Use regex instead of string to replace all * Add global flag to regex to replace all occurences Co-authored-by: Magdalena Markusik --- src/components/Timeline/TimelineNote.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Timeline/TimelineNote.tsx b/src/components/Timeline/TimelineNote.tsx index 28203686a..21e9bbe1f 100644 --- a/src/components/Timeline/TimelineNote.tsx +++ b/src/components/Timeline/TimelineNote.tsx @@ -97,7 +97,7 @@ export const TimelineNote: React.FC = props => { ") + __html: message.replace(/\n/g, "
") }} />