Folio icon indicating copy to clipboard operation
Folio copied to clipboard

URL detection is too aggressive

Open kuiperzone opened this issue 10 months ago • 6 comments

From what I can see, Folio auto detects a link in the text if merely contains a . with no whitespace. As a result, it also characterises simple file names and namespaces as links and my notes are littered with false positive "links".

See screenie.

May I suggest for purposes of auto-link detection, a text fragment must contain (but not start or end with) both:

://, .

where the first occurrence of . must be after the :// the scheme separator.

Or as well: a fragment may start with www. instead of containing ::/, though few use www any more.

This obviously shouldn't apply to links explicitly designated with ()[].

image

kuiperzone avatar Apr 08 '24 13:04 kuiperzone