* 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:
parent
3902ff48dd
commit
11a3a79032
@ -26,7 +26,7 @@ export const ChatSystemMessage: FC<ChatSystemMessageProps> = ({
|
||||
className={styles.message}
|
||||
content={body}
|
||||
matchers={[
|
||||
new UrlMatcher('url', { validateTLD: false }),
|
||||
new UrlMatcher('url',{ customTLDs: ['online'] }),
|
||||
new ChatMessageHighlightMatcher('highlight', { highlightString }),
|
||||
]}
|
||||
/>
|
||||
|
@ -110,7 +110,7 @@ export const ChatUserMessage: FC<ChatUserMessageProps> = ({
|
||||
className={styles.message}
|
||||
content={body}
|
||||
matchers={[
|
||||
new UrlMatcher('url', { validateTLD: false }),
|
||||
new UrlMatcher('url', { customTLDs: ['online'] }),
|
||||
new ChatMessageHighlightMatcher('highlight', { highlightString }),
|
||||
]}
|
||||
/>
|
||||
|
Loading…
x
Reference in New Issue
Block a user