Skip to content

Commit e9d11d6

Browse files
ashishdebnath97ZuhairAhmed-cs
authored andcommitted
feat: updates
1 parent 5626808 commit e9d11d6

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

src/visualBuilder/utils/collabUtils.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export const getMessageWithDisplayName = (
8787
): string | undefined => {
8888
if (!comment) return undefined;
8989

90-
let tempText = comment.message;
90+
let tempText = comment.message.replace(/<[^>]*>/g, "");
9191

9292
comment?.toUsers?.forEach((user) => {
9393
const userPattern = new RegExp(`{{${user}}}`, "g");
@@ -120,6 +120,7 @@ export const getCommentBody = (state: ICommentState): ICommentState => {
120120
let finalMessage = state.message
121121
.replace(/[^\S\r\n]+/g, " ")
122122
.replace(/ *\n */g, "\n")
123+
.replace(/<[^>]*>/g, "")
123124
.trim();
124125

125126
const comment = {
@@ -160,9 +161,9 @@ export function fixSvgXPath(xpath: string | null): string {
160161

161162
/**
162163
* populate the position of the thread based on edges of the screen.
163-
* @param position
164-
* @param options
165-
* @returns
164+
* @param position
165+
* @param options
166+
* @returns
166167
*/
167168
export function adjustPositionToViewport(
168169
position: { top: number; left: number },

0 commit comments

Comments
 (0)