Skip to content

Add a bit more URL recognition intelligenceΒ #5464

@teknowledgist

Description

@teknowledgist

If you have code with a URL contained in single quotes, Notepad3 includes the final single quote in the URL. What happens with a CTRL-click on the URL is (usually) a 404 since the url doesn't actually end in '.

Because ' is a legal URL character, I understand why it is doing that, but could some logic be added to be a bit smarter about it? At a minimum, don't include a ' at the end of the url if the URL is immediately preceded by a '.

Basically, it should be easy to identify an invalid ' in a line like (This is what I encounter a lot.):
$URL = 'https://example.com'

It gets harder in a line like (totally made up code because I am not aware of a real example):
<definition:'url=https://example.com'>

Although, there simply cannot be all that many actual pages with URLs that end in ', so simply ignoring it at the end of any URL string would probably be correct 99.999% of the time.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions