Skip to content

Bugfix/6371/fix hyperlinks with numbers#6392

Open
mahibi wants to merge 1 commit into
masterfrom
bugfix/6371/fixHyperlinksWithNumbers
Open

Bugfix/6371/fix hyperlinks with numbers#6392
mahibi wants to merge 1 commit into
masterfrom
bugfix/6371/fixHyperlinksWithNumbers

Conversation

@mahibi

@mahibi mahibi commented Jun 23, 2026

Copy link
Copy Markdown
Collaborator

fix #6371

🏁 Checklist

  • ⛑️ Tests (unit and/or integration) are included or not needed
  • 🔖 Capability is checked or not needed
  • 🔙 Backport requests are created or not needed: /backport to stable-xx.x
  • 📅 Milestone is set
  • 🌸 PR title is meaningful (if it should be in the changelog: is it meaningful to users?)

🤖 AI (if applicable)

  • The content of this PR was partly or fully generated using AI

@mahibi mahibi self-assigned this Jun 23, 2026
@mahibi mahibi added the 3. to review Waiting for reviews label Jun 23, 2026

@rapterjet2004 rapterjet2004 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't seem to be working.

Image

@mahibi

mahibi commented Jun 26, 2026

Copy link
Copy Markdown
Collaborator Author

Doesn't seem to be working.
Image

well that's not a valid http link.. in this case it's expected that the number would offer the phone dialer. (altough the preview should not be shown in this case, same as on web..)

When testing i found valid links with uppercase H for in Https crashed. fixed it

@mahibi mahibi marked this pull request as draft June 26, 2026 09:53
…quences

  - Normalize URL scheme to lowercase via a TransformFilter in Linkify.addLinks,
    so mixed-case schemes like "Https://" no longer crash with
    ActivityNotFoundException
  - Replace the destructive Linkify mask-based call (which removed all existing
    URLSpans) with three pattern-based calls using a MatchFilter that skips ranges
    already covered by a URLSpan — this prevents phone/email spans from landing
    inside markdown links or plain URLs containing digit sequences
  - Apply the same normalizeScheme() fix to LinkMessage's link preview card

Assisted-by: Claude Code:claude-sonnet-4-6

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
@mahibi mahibi force-pushed the bugfix/6371/fixHyperlinksWithNumbers branch from c0cec20 to 3f5faf4 Compare June 26, 2026 10:20
@mahibi mahibi marked this pull request as ready for review June 26, 2026 10:22
@rapterjet2004 rapterjet2004 self-requested a review June 26, 2026 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews AI assisted

Projects

None yet

Development

Successfully merging this pull request may close these issues.

hyperlink with numbers -> numbers open phone dialer

2 participants