element-hq / element-hq/element-x-android
Improve phone number detection to avoid displaying every short number as a link
Open
T-Enhancement
- Dominant language
- Kotlin
- Stars
- 2.4k
- Forks
- 624
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 149
Description
### Your use case
#### What would you like to do?
Currently, every number with 2 or more digits is shown as a phone link, so i can call it by tapping on it. Not sure if this is fixable, 23 is probably never a phone number, but there are indeed very short phone numbers like 911.
#### Why would you like to do it?
it is a bit irritating, that most simple numbers are a link
#### How would you like to achieve it?
i would search for a regex that detects phone numbers
### Have you considered any alternatives?
_No response_
### Additional context
_No response_
### Are you willing to provide a PR?
Yes
Contributor guide
Assessment
This issue has not been assessed yet.