Linking selected text containing a colon is interpreted as a URL #32301
Labels
[Feature] Link Editing
Link components (LinkControl, URLInput) and integrations (RichText link formatting)
Good First Issue
An issue that's suitable for someone looking to contribute for the first time
[Status] In Progress
Tracking issues with work in progress
[Type] Enhancement
A suggestion for improvement.
While auto-linking text such as mailto:foo@bar and tel:0123456789 is useful, any text including a colon is also automatically turned into a link, even if it contains spaces, such
as: this text
. The user is then required to edit and replace the URL (AFAIK this cannot be done with a keyboard shortcut and so breaks my Cmd+K typing flow).I think the selected text is tested using the following utility function:
Perhaps the regex could be modified to exclude text containing a colon immediately followed by a whitespace character:
The text was updated successfully, but these errors were encountered: