Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix(richtext-lexical): improved regex matchers for absolute and relative URLs to make autolinking more reliable #10725

Conversation

paulpopus
Copy link
Contributor

Fixes an issue where pasting text over a selection will automatically add it as a link instead of replacing the text. This is caused by poor regex matching in the case of relative URLs.

Added tests and strengthened both absolute and relative URL matchers

@paulpopus paulpopus enabled auto-merge (squash) January 22, 2025 16:45
@paulpopus paulpopus merged commit 9bb27af into main Jan 22, 2025
72 checks passed
@paulpopus paulpopus deleted the fix/lexical-improved-regex-matchers-for-URLs-to-handle-more-edgecases branch January 22, 2025 16:53
Copy link
Contributor

🚀 This is included in version v3.19.0

kendelljoseph pushed a commit that referenced this pull request Feb 21, 2025
…ive URLs to make autolinking more reliable (#10725)

Fixes an issue where pasting text over a selection will automatically
add it as a link instead of replacing the text. This is caused by poor
regex matching in the case of relative URLs.

Added tests and strengthened both absolute and relative URL matchers
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants