diff --git a/web/components/chat/ChatSystemMessage/ChatSystemMessage.tsx b/web/components/chat/ChatSystemMessage/ChatSystemMessage.tsx index 4c38d86ba..703d5e4eb 100644 --- a/web/components/chat/ChatSystemMessage/ChatSystemMessage.tsx +++ b/web/components/chat/ChatSystemMessage/ChatSystemMessage.tsx @@ -26,7 +26,7 @@ export const ChatSystemMessage: FC = ({ className={styles.message} content={body} matchers={[ - new UrlMatcher('url', { validateTLD: false }), + new UrlMatcher('url',{ customTLDs: ['online'] }), new ChatMessageHighlightMatcher('highlight', { highlightString }), ]} /> diff --git a/web/components/chat/ChatUserMessage/ChatUserMessage.tsx b/web/components/chat/ChatUserMessage/ChatUserMessage.tsx index 9d0115397..a9a8468ab 100644 --- a/web/components/chat/ChatUserMessage/ChatUserMessage.tsx +++ b/web/components/chat/ChatUserMessage/ChatUserMessage.tsx @@ -110,7 +110,7 @@ export const ChatUserMessage: FC = ({ className={styles.message} content={body} matchers={[ - new UrlMatcher('url', { validateTLD: false }), + new UrlMatcher('url', { customTLDs: ['online'] }), new ChatMessageHighlightMatcher('highlight', { highlightString }), ]} />