* FIX: Chat: words containing one or more dots are turned into links #2898 Making validateTLD to true and also adding a parameter of customTLDs * Update ChatUserMessage.tsx * Prettified Code! --------- Co-authored-by: dev265545 <dev265545@users.noreply.github.com>
This commit is contained in:
@@ -26,7 +26,7 @@ export const ChatSystemMessage: FC<ChatSystemMessageProps> = ({
|
|||||||
className={styles.message}
|
className={styles.message}
|
||||||
content={body}
|
content={body}
|
||||||
matchers={[
|
matchers={[
|
||||||
new UrlMatcher('url', { validateTLD: false }),
|
new UrlMatcher('url',{ customTLDs: ['online'] }),
|
||||||
new ChatMessageHighlightMatcher('highlight', { highlightString }),
|
new ChatMessageHighlightMatcher('highlight', { highlightString }),
|
||||||
]}
|
]}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ export const ChatUserMessage: FC<ChatUserMessageProps> = ({
|
|||||||
className={styles.message}
|
className={styles.message}
|
||||||
content={body}
|
content={body}
|
||||||
matchers={[
|
matchers={[
|
||||||
new UrlMatcher('url', { validateTLD: false }),
|
new UrlMatcher('url', { customTLDs: ['online'] }),
|
||||||
new ChatMessageHighlightMatcher('highlight', { highlightString }),
|
new ChatMessageHighlightMatcher('highlight', { highlightString }),
|
||||||
]}
|
]}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user