fix(chat): enable tld validation in autolinking and add online to accepted tlds

This commit is contained in:
Gabe Kangas 2023-06-15 05:40:59 -07:00
parent 809196527d
commit a86049729e
No known key found for this signature in database
GPG key ID: 4345B2060657F330

View file

@ -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 }),
]}
/>