element-hq / element-hq/element-android

Periods following a hyperlink are parsed as part of the link, mangling the URL

Open
#6,722 0 comments 1 reaction 0 assignees View on GitHub
A-Links A-Timeline O-Occasional S-Minor T-Defect
Dominant language
Kotlin
Stars
3.7k
Forks
917
PR merge metrics
No merged PRs in 30d

Description

### Steps to reproduce

URLs in posts are converted to hyperlinks. However, if the link is immediately followed by a period, without an intervening space, it is parsed as part of the link, which mangles the URL. This happen, for example, if the link is part of a sentence that ends with a period.

### Outcome

On Element for iOS and Element for Desktop (Windows) the hyperlinks are parsed without the period. It would make sense for Element for Android to follow the same behavior.

### Your phone model

Pixel 5

### Operating system version

Android 12L

### Application version and app store

F-Droid 1.4.25 [40104250] (F-1f34d368)

### Homeserver

Debian Matrix-Synapse 1.61.1-1

### Will you send logs?

No

### Are you willing to provide a PR?

No

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.