Skip to content

Bugfix/6371/fix hyperlinks with numbers#6392

Open
mahibi wants to merge 2 commits into
masterfrom
bugfix/6371/fixHyperlinksWithNumbers
Open

Bugfix/6371/fix hyperlinks with numbers#6392
mahibi wants to merge 2 commits 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 added 2 commits June 23, 2026 15:16
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
…erlink

  The mask-based Linkify.addLinks(PHONE_NUMBERS|EMAIL_ADDRESSES) call stripped
  all existing URLSpans before adding its own, so phone/email spans could land
  inside markdown link text or plain URLs containing digit sequences. Tapping
  those digits then opened the phone dialer instead of the hyperlink.

  Replace the destructive mask-based call with three pattern-based calls
  (URLs first, then phone and email). A MatchFilter rejects any match whose
  range is already covered by a URLSpan, which includes Markwon's LinkSpan
  (markdown links) since LinkSpan extends URLSpan. This removes the need for
  the save/restore workaround entirely.

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

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
@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

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