Browse Source

Revert "FIX : Chat: words containing one or more dots are turned into links #2898 (#2903)"

This reverts commit 11a3a79032.
gek/fix-access-token-validation
Gabe Kangas 3 years ago
parent
commit
d346485f94
No known key found for this signature in database
GPG Key ID: 4345B2060657F330
  1. 2
      web/components/chat/ChatSystemMessage/ChatSystemMessage.tsx
  2. 2
      web/components/chat/ChatUserMessage/ChatUserMessage.tsx

2
web/components/chat/ChatSystemMessage/ChatSystemMessage.tsx

@ -26,7 +26,7 @@ export const ChatSystemMessage: FC<ChatSystemMessageProps> = ({ @@ -26,7 +26,7 @@ export const ChatSystemMessage: FC<ChatSystemMessageProps> = ({
className={styles.message}
content={body}
matchers={[
new UrlMatcher('url', { customTLDs: ['online'] }),
new UrlMatcher('url', { validateTLD: false }),
new ChatMessageHighlightMatcher('highlight', { highlightString }),
]}
/>

2
web/components/chat/ChatUserMessage/ChatUserMessage.tsx

@ -110,7 +110,7 @@ export const ChatUserMessage: FC<ChatUserMessageProps> = ({ @@ -110,7 +110,7 @@ export const ChatUserMessage: FC<ChatUserMessageProps> = ({
className={styles.message}
content={body}
matchers={[
new UrlMatcher('url', { customTLDs: ['online'] }),
new UrlMatcher('url', { validateTLD: false }),
new ChatMessageHighlightMatcher('highlight', { highlightString }),
]}
/>

Loading…
Cancel
Save