-
-
Notifications
You must be signed in to change notification settings - Fork 376
Description
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!