Files
element-x-android/libraries
hayaksi1 0ccb9b23cc Linkify URLs whose host is a bracketed IPv6 address
Patterns.WEB_URL, which LinkifyCompat uses to find links, has no
production for a bracketed IPv6 authority, so a URL such as
http://[2001:db8::1]:8008/path was never turned into a link. Worse, the
phone number matcher claimed the digit runs inside the address, leaving a
tel: link over part of it.

LinkifyHelper now runs its own pass for those URLs. It requires both a
scheme and the brackets, so array syntax like values[0]:1 is not matched,
and it runs after LinkifyCompat.addLinks, which strips any span set before
it, but before the pre-existing spans are restored, so real anchors and
pill spans keep their precedence. Any span Linkify left inside the address
is evicted, and the same trailing punctuation trimming as the other links
is applied.

Relates to https://github.com/element-hq/element-x-android/issues/2614
2026-08-09 03:51:49 +03:00
..
…
2026-08-06 18:35:18 +02:00
…
2026-07-23 14:57:12 +02:00
2026-07-13 12:21:55 +02:00
2026-07-28 14:51:37 +02:00