fix(message-parser): link addresses under the private-use .internal domain
MR
21h ago+18+18+01234567890123456789-1-1-0123456789
Closes #32688
Proposed changes
The message parser only auto-links hosts whose suffix is on the public suffix list, plus localhost and the domains listed in Message_CustomDomain_AutoLink. ICANN reserved .internal for private networks in 2024, so it will never be on that list, and addresses like https://wiki.corp.internal/page rendered as plain text, even with an explicit scheme.
autoLink(packages/message-parser/src/utils.ts) now treatsinternalas a valid host by default, the same way it already treatslocalhost.- Other unknown suffixes are unchanged (
https://internaltool.testtstill isn't linked), andMessage_CustomDomain_AutoLinkworks as before.
Steps to test or reproduce
- Send
https://wiki.corp.internal/pageandwiki.internalin any room. - Before: both show as plain text. After: both are links.
Tests
tests/url.test.ts: the two .internal cases fail on develop and pass with this change. All 734 message-parser tests pass.
Summary by CodeRabbit
- Bug Fixes
- Links to
.internaladdresses now render as links instead of plain text.
- Links to