element-hq / element-hq/element-android

URL parsing breaks if parenthesis followed by more text

Open
#4,814 0 comments 0 reactions 0 assignees View on GitHub
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

1. Paste a URL like `https://en.wikipedia.org/wiki/Bootstrapping_(compilers)` into the message compose box, followed by a space and some text.
2. Send the message.

### Outcome

#### What did you expect?

The URL should be parsed properly.

#### What happened instead?

The closing parenthesis isn't considered a part of the URL, breaking it.

I tested this on Element Web, and this bug doesn't occur there.

### Your phone model

_No response_

### Operating system version

_No response_

### Application version and app store

1.4.32

### Homeserver

_No response_

### Will you send logs?

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.