File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 */
167168export function adjustPositionToViewport (
168169 position : { top : number ; left : number } ,
You can’t perform that action at this time.
0 commit comments