autolink-java icon indicating copy to clipboard operation
autolink-java copied to clipboard

Linkify domain-only links (without scheme or www)

Open theyuv opened this issue 5 years ago • 1 comments

Thanks for your library.

Would you consider adding a LinkType for just domains (eg: example.com)?

There are some cases where this is considered a link and needs to be detected/extracted (eg: Gmail and Twitter detect domains like these as links and turn them into an anchor tag).

Thanks again.

theyuv avatar May 08 '19 07:05 theyuv

Hey! Yeah, extraction of plain domains would be handy. I think we'd need to be able to specify an "include list" of domains that should be detected, otherwise it tends to detect a lot of false positives. Or we'd ask the caller to do that themselves.

Anyway, I added a "help wanted" label and welcome pull requests for this.

robinst avatar Jul 02 '19 02:07 robinst