diff --git a/projects/stream-chat-angular/src/lib/message-text/message-text.component.ts b/projects/stream-chat-angular/src/lib/message-text/message-text.component.ts index e6e862c4..ca33d506 100644 --- a/projects/stream-chat-angular/src/lib/message-text/message-text.component.ts +++ b/projects/stream-chat-angular/src/lib/message-text/message-text.component.ts @@ -42,8 +42,7 @@ export class MessageTextComponent implements OnChanges { messageTextParts: MessagePart[] | undefined = []; messageText?: string; displayAs: 'text' | 'html'; - private readonly urlRegexp = - /(?:(?:https?|ftp|file):\/\/|www\.|ftp\.|(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,})(?![^\s]*@[^\s]*)(?:[^\s()<>]+|\([\w\d]+\))*(?]+|\\([\\w\\d]+\\))*(?