Files
eason 9e4a5985b5 fix: prevent text starting with URL from being misidentified as link (#2975)
Dart's Uri.tryParse is very permissive and will successfully parse
strings like "https://example.com some extra text" as valid absolute
URIs. This caused the receiver to incorrectly classify any message
beginning with a URL as a link, even when it contained additional
non-URL text.

Add a whitespace check before URI parsing so that only messages
consisting entirely of a single URL (with optional surrounding
whitespace) are treated as links.

Fixes #2904

Co-authored-by: easonysliu <easonysliu@tencent.com>
2026-03-18 17:39:17 +01:00
..
2025-10-27 01:54:38 +01:00
2025-10-27 01:54:38 +01:00
2025-10-27 01:54:38 +01:00
2026-03-02 03:51:37 +01:00
2025-10-27 01:54:38 +01:00
2025-05-26 18:49:52 +02:00
2025-10-27 01:54:38 +01:00
2025-05-26 18:49:52 +02:00
2025-10-27 01:54:38 +01:00
2025-10-27 01:54:38 +01:00
2025-10-27 01:54:38 +01:00
2025-10-27 01:54:38 +01:00
2025-10-27 01:54:38 +01:00