Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/pages/home/report/comment/TextCommentFragment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ function TextCommentFragment({fragment, styleAsDeleted, reportActionID, styleAsM
const lines = htmlContent.split(/<br\s*\/?>/i);
const processedLines = lines.map((line) => {
if (isEmojiOnSeparateLine(line)) {
return line.replace('<emoji>', '<emoji ismedium oneline >');
return line.replaceAll('<emoji>', '<emoji ismedium oneline >');
}
return line.replace('<emoji>', '<emoji ismedium>');
return line.replaceAll('<emoji>', '<emoji ismedium>');
});

htmlContent = processedLines.join('<br />');
Expand Down
Loading