maltaisn / another-notes-app

Another notes app for Android, like there have been tens of thousands before.
Apache License 2.0
351 stars 36 forks source link

[Feature request] Support for more link types #107

Closed anedroid closed 1 year ago

anedroid commented 1 year ago

Another Notes app automatically recognizes URLs in the text and turns them into clickable links, but as of my tests only http, https and ftp URLs are being recognized, also email addresses and domain names. I would suggest to treat everything matching i.e. \w+[-\w]*:\/[^ ]+ like an URL, because there are many different protocols other than http(s), here are some examples:

...and new ones may appear in the future, i.e. fedi links for the purpose of mobile apps like Tusky.

Also I noticed some special TLDs like onion, i2p or loki used in p2p networks are not recognized. I suggest add them too.